Monday 28 January 2013

Android Life Cycle Methods

Hai Friends Now we are going to discuss about some Android Life Cycle Methods.

The Android Life Cycle Methods are
  • onCreate()
  • onRestart()
  • onStart()
  • onResume();
  • onPause()
  • onStop()
  • onDestroy()
  • onSaveInstanceState()
Not we are going to discuss here for all methods.

onSaveInstanceState():

It called if the activity is stopped. it used to save data.
it can restore it states if it restarted.

onPause():

It always called if the activity ends, can be used to release or save data.

onResume()

Called if the activity is re-started.
it can be used to initialize fields.



Thanks for Visiting
 --
Regards with

R. Partha Sarathy

No comments:

Post a Comment