1.启动Activity:
onCreate-->onStart-->onResume;
2.点击back后:
onPause-->onStop-->onDestroy;
3.长按Home键:
onCreate-->onStart-->onResume;
4.按Home键Activity状态转换:
退出应用:onPause-->onStop;
5.长按Hmoe键选择应用的,Activity状态转换:
选择应用:onRestart-->onStart-->onResume;
6.页面之间跳转Activity状态转换:
1.页面1:onPause
2.页面2:onCreate-->onStart-->onResume
3.页面1:onStop
7.back跳转回来:
1.page two 完成:onPause后
2.page one 完成:onRestart-->onStart-->onResume;
3.page two再完成:onStop-->onDestroy;
当Activity被onStop后,如果采用页面跳转回来则会调用:onCreate-->onStart-->onResume;
如果采用back按钮回来则会调用:onRestart-->onStart-->onResume;