Releasing Camera Instance After A Single Image Is Captured And Returning To Parent Activity
I am trying to call camera instance, capture an image and return to the parent activity. I am able to create and call the camera instance, capture and store the image, but the acti
Solution 1:
make a call to finish()
once you are done taking a photo, it will exit you from current activity and you will be returned back to previous activity.
Solution 2:
When you have taken your photo and are ready to return to your calling activity, you have to call this code
setResult(RESULT_OK);
then
finish();
This will return to your calling activity with the resultCode = RESULT_OK
Solution 3:
For finishing the activity you have to use finish() method after starting activity or you can include flags to intent before starting activity.
Post a Comment for "Releasing Camera Instance After A Single Image Is Captured And Returning To Parent Activity"