Android: Activity getting Destroyed after calling Camera Intent

i had the same problem.i will be crazy but finally i have found a solution here.
the issue is that when you click on “save” button of the camera the activity call change orientation method and it will destroy and recreated.
try to set

android:configChanges="orientation|screenSize"

in android manifest (not only android:configChanges="orientation" because as suggest here, it not work for API level 13 or higher).

it prevent to destroy activity,it work for me.

Leave a Comment