例:
Activity1------------------>Activity2:
Activity1: onPause()------------------>onStop()
Activity2: onCreate()------------------>onStart()------------------>OnResume()
Activity1<------------------Activity2: (back)
Activity1: onActivityResult()------------------>onRestart()------------------>onStart()------------------>onResume()
Activity2: onBackPressed()------------------>onPause()------------------>onStop()------------------>onDestroy()
Activity1------------------>Home:
Activity1: onPause()------------------>onStop()
Home------------------>Activity1:
Activity1: onRetart()------------------>onStart()------------------>onResume()
Activity1------------------>Activity2:
Activity1: onPause()------------------>onStop()
Activity2: onCreate()------------------>onStart()------------------>OnResume()
Activity1<------------------Activity2: (back)
Activity1: onActivityResult()------------------>onRestart()------------------>onStart()------------------>onResume()
Activity2: onBackPressed()------------------>onPause()------------------>onStop()------------------>onDestroy()
Activity1------------------>Home:
Activity1: onPause()------------------>onStop()
Home------------------>Activity1:
Activity1: onRetart()------------------>onStart()------------------>onResume()