Understanding Android Activity Lifecycle
Understanding Android Activity Lifecycle
Android apps go through a number of stages from the time they’re first loaded to when they get closed down. These stages are handled as “events”. For a typical activity, the key events include onCreate, onStart, onResume, onPause, onStop, onDestroy
As a user navigates through, out of, and back to the app, the Activity instances in the app transition through different states in their lifecycle.
The lifecycle paradigm is explained in detail here:
https://developer.android.com/guide/components/activities/activity-lifecycle#alc