How do I avoid resume after taking picture in android? I didn’t override any resume method. I am capturing pictures using the default camera in android. After the onactivityresult method is executed, it will refresh the activity. How do I avoid that? Can anybody help with this?
How do I avoid resume after taking picture in android? I didn’t override any
Share
You can not. This is part of activity lifecycle. When you call camera (activity), it comes to foreground, and caller activity loses focus – wham, onPause() is called.
When camera is done, it gives away focus and some other activity (yours) becomes it – wham, onResume() is Called.
You will have to work around this lifecycle. What is your problem?