Activity Lifecycle if button Home pressed Android example

If on Android emulator home button pressed.

// button home presssed
19:37:06.727: INFO/ActivityManager(60): Starting: 
Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] 
flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher } from pid 60
 
19:37:06.807: INFO/onSaveInstanceState(339): onSaveInstanceState()
19:37:06.848: INFO/onPause(339): onPause()
19:37:07.968: INFO/onStop(339): onStop()

Diagram of Activity lifecycle if button HOME pressed

life_cycle_button_home_pressed

This entry was posted in Android Examples Code and tagged , , . Bookmark the permalink.


Comments are closed.



6,608 views