一、概要
以A和B为例
二、过程
1、A跳转B时没有调用finish()方法
依次执行onPause(A)、onCreate(B)、onStart(B)、onResume(B)、onSaveInstance(A)、onStop(A),
按返回键之后依次执行onPause(B)、onRestart(A)、onStart(A)、onResume(A)、onStop(B)、onDestroy(B)。
2、A跳转B时调用finish()方法
依次执行onPause(A)、onCreate(B)、onStart(B)、onResume(B)、onStop(A)、onDestroy(A),
按返回键之后依次执行onPause(B)、onStop(B)、onDestroy(B)。
1123581321345589
1123581321845312057
208581123581321691300712
369521348852147756663333
66322478885442239999665544441