ABCDEFGHIJKLMNOPQRSTUVW
1
// open activity - press home// open activity - press back// open activity - rotate activity// open activity - rotate activity// open activity - open other activity - press back// open activity - open other activity - rotate - press back// open activity - open other activity for result - press back
2
useractivity Auseractivity Auser / commentactivity Auser / commentactivity Auser / commentactivity Aactivity Buser / commentactivity Aactivity Buser / commentactivity Aactivity B
3
4
onCreate()onCreate()onCreate()onCreate()onCreate()onCreate()onCreate()
5
onStart()onStart()onStart()onStart()onStart()onStart()onStart()
6
onPostCreate()onPostCreate()onPostCreate()onPostCreate()onPostCreate()onPostCreate()onPostCreate()
7
onResume()onResume()onResume()onResume()onResume()onResume()onResume()
8
onPostResume()onPostResume()onPostResume()onPostResume()onPostResume()onPostResume()onPostResume()
9
activity loadedactivity loadedactivity loadedactivity loadedactivity loadedactivity loadedactivity loaded
10
home pressback pressrotaterotateopen other activityopen other activityopen other activity (startActivityForResult(second, requestCode))
11
onPause()onPause()onPause()onConfigurationChanged()onPause()onPause()onPause()
12
onSaveInstanceState()onSaveInstanceState()onCreate()onCreate()onCreate()
13
onStop()onStop()onStop()onStart()onStart()onStart()
14
< deprecated from API 13onRetainNonConfigurationInstance()onPostCreate()onPostCreate()onPostCreate()
15
onDestroy()onDestroy()onResume()onResume()onResume()
16
onCreate()onPostResume()onPostResume()onPostResume()
17
onStart()onSaveInstanceState()onSaveInstanceState()onSaveInstanceState()
18
onPostCreate()onStop()onStop()onStop()
19
onResume()second activity loadedsecond activity loadedsecond activity loaded
20
onPostResume()back pressrotateback press
21
onPause()onPause()onPause()
22
onSaveInstanceState()onActivityResult()
23
onRestart()onStop()onRestart()
24
onStart()onRetainNonConfigurationInstance()onStart()
25
onResume()onDestroy()onResume()
26
onPostResume()onCreate()onPostResume()
27
onStop()onStart()onStop()
28
onDestroy()onPostCreate()onDestroy()
29
onResume()
30
onPostResume()
31
rotated, back press
32
onPause()
33
onRetainNonConfigurationInstance()
34
onDestroy()
35
onCreate()
36
onStart()
37
onPostCreate()
38
onResume()
39
onPostResume()
40
onStop()
41
onDestroy()
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100