Hai Friends Now we are going to discuss about some Android Life Cycle Methods.
The Android Life Cycle Methods are
Thanks for Visiting
--
Regards with
R. Partha Sarathy
The Android Life Cycle Methods are
- onCreate()
- onRestart()
- onStart()
- onResume();
- onPause()
- onStop()
- onDestroy()
- onSaveInstanceState()
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.
--
Regards with
R. Partha Sarathy