1,打开APP,进入Activity A 生命周期如下:
A :onCreate->
A :onStart->
A :onResume
2,ActivityA 跳转到Activity B 生命周期如下:
A: onPause
B: onCreate
B: onStart
B:onResume
A: onStop
3,Activity B 返回 Activity A
B:onPause
A:onRestart
A:onStary
A: onResume
B:onStop
B:onDestory
4,Activity A 按返回键返回
A: onPause
A:onStop
A:onDestory