Pr.Pg Next Pg

What is Life Cycle of an Activity tutorials

  • Each Activity has its own Lifecycle methods.

  • As a user navigates through, out of, and back to your app, theActivity instances in your app transition between different states in their lifecycle.

  • When an action opens a new activity from your current activity, a new set of life cycles methods will be called on the current activity as it moves towards the background.

  • The life cycle methods enable the programmer to define how the activity will behave when the user leaves and reenters the activity.

  • For example while messaging if a person gets a phone call, the messaging activity should save its state and instance so that when the user is finished with his call, he can find the state intact.


Pr.Pg border                                              Next Pg