Activity & fragment lifecycle events
On 29 September 2015 in Tech1. Start new activity
Activity, onCreate
Fragment, onAttach
Fragment, onAttach
Fragment, onCreateView
Fragment, onActivityCreated
Fragment, onStart
Activity, onStart
Activity, onResume
Fragment, onResume
2. Close activity (tap back button)
Fragment, onPause
Activity, onPause
Activity, onStop
Fragment, onDestroyView
Fragment, onDestroy
Fragment, onDetach
Activity, onDestroy
3. Hide activity (tap home button)
Fragment, onPause
Activity, onPause
Activity, onStop
4. Resume activity (from home screen)
Activity, onRestart
Fragment, onStart
Activity, onStart
Activity, onResume
Fragment, onResume
5. Go to other activity
Fragment, onPause
Activity, onPause
Activity, onStop
6. Resume from other activity (return back)
Activity, onRestart
Fragment, onStart
Activity, onStart
Activity, onResume
Fragment, onResume
Related posts:
-
Setup Titanium Studio environment for developing Titanium module (Android) on Windows
-
Android Popup Menu module for Titanium
-
Logcat
-
Restart ADB
-
Designing web page for Android webview
-
ScrollableView in ListView
-
Titanium ListView
-
Titanium Android keystore
-
Titanium app hex color value with alpha channel
-
ActionBarImplBase can only be used with a compatible window decor layout
Filed under Tech with tags Android
Leave a Reply