How much memory needed to run ACTION_IMAGE_CAPTURE without killing other activities in task?
With DDMS I’ve seend that there is 2,5-3 Mb free memory in heap, but sometimes Android kills my activity which calls ACTION_IMAGE_CAPTURE.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s a fully expected thing on Android. The OS may kill any activity that is in the background (invisible for user). That’s why you need to implement your activity in accordance to Activity life-cycles. Check the guide on this: Managing the Activity Lifecycle. If you properly save/restore the state of the activity, then you are on a safe side – your calling activity (which calls ACTION_IMAGE_CAPTURE) will be fully restored for you when user comes back to it from Camera activity.