Looking at the Activity Life Cycle diagram, I notice that onPause()
and onStop()
can both lead to the "process" being killed. This would require onCreate()
to be called when the user wants to resume their application. The point being that onStop()
is not necessarily called, nor is onDestroy()
, but that onPause()
may be the only event that the Activity may see. This being the case, onPause()
must handle saving the application status so that the user can return back to it later, regardless of whether onStop()
is called or not.
I can see onDestroy()
being used to clean up Activity specific resources that would naturally be eliminated in a process kill action. Is there anything else that onDestroy()
would be good for?
And what would onStop()
be good for? Why would I want to override it for?