Looking at the Activity Life Cycle diagram, I notice that onPause()
and onStop()
can both lead to the \"process\" being killed. This would require
If I got your question right: It depends what you want to do with your application. Let's say you are programming application that uses GPS. In the onStop()
which is called when the activity is no longer visible to the user, you can remove these requests. Or you can stop the some service if your application is running any. Or you can save preferences (not recommended, do it in onPause()
instead), or you can close permanent connection to a server.....If I think of anything else, I'll add more...