Professional Documents
Culture Documents
wk3 - Activity Lifecycle
wk3 - Activity Lifecycle
Discipline of IT
James Cook University
Life cycles
• Each android App component has an associated
life-cycle
– Methods that are called at different times while
the component runs
• onPause() / onResume()
The bundle object, and state saving
• There are two more useful methods
– onSaveInstanceState()
– onRestoreInstanceState() / onCreate()
getApplicationContext();
getApplication();