Monday 5 January 2015

What are the life cycle methods of android Activity ?


  As an activity transitions from state to state, it is notified of the change by calls to the  
  following protected methods:

  1.     void onCreate(Bundle savedInstanceState)
  2.     void onStart()
  3.     void onRestart()
  4.     void onResume()
  5.     void onPause()
  6.     void onStop()
  7.     void onDestroy()
 
 Taken together, these seven methods define the entire lifecycle of an activity.




No comments:

Post a Comment