Thursday 13 December 2012

Android LifeCycle


    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.

Activity LifeCycle
Different states are:-
  • Active State
  • Visible State
  • Inactive/Invisible State
These states can be managed using following methods:-
  • onCreate()
  • onDestroy()
  • onStart()
  • onStop()
  • onPause()
  • onResume()
To be continued........

0 comments:

Post a Comment