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.
Different states are:-
- Active State
- Visible State
- Inactive/Invisible State
- onCreate()
- onDestroy()
- onStart()
- onStop()
- onPause()
- onResume()
0 comments:
Post a Comment