Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
onStop and onDestroy should ALWAYS get called.
And the table in the above mentioned page indicates that the process can be killed in those two states.If an activity is paused or stopped, the system can drop the activity from memory by either asking it to finish, or simply killing its process. When it is displayed again to the user, it must be completely restarted and restored to its previous state.
Even if it is killed by the OS, onStop and onDestroy should still be called.
Note the "Killable" column in the above table -- for those methods that are marked as being killable, after that method returns the process hosting the activity may killed by the system at any time without another line of its code being executed.