In android, an application doesn't have any control over its lifecycle.
Life Cycle of an Android Application could be managed by Android Run-time Environment which provide some callback methods to notify the different change of state of an application.
As an application developer, our responsibility would be just to override these callback methods to handle the change of state of an application.
- Active State
- Visible State
- Inactive/Invisible State