Activity生命周期记录

打开FirstActivity

FirstActivity.onCreate
FirstActivity.onStart
FirstActivity.onResume

FirstActivity跳转至SecondActivity

FirstActivity.onPause
SecondActivity.onCreate
SecondActivity.onStart
SecondActivity.onResume
FirstActivity.onStop

SecondActivity返回至FirstActivity

SecondActivity.onPause
FirstActivity.onActivityResult
FirstActivity.onRestart
FirstActivity.onStart
FirstActivity.onResume
SecondActivity.onStop
SecondActivity.onDestroy

FirstActivity锁屏

FirstActivity.onPause
FirstActivity.onStop

FirstActivity亮屏

FirstActivity.onRestart
FirstActivity.onStart
FirstActivity.onResume

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/18/activity-lifecycle-record/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
Activity生命周期记录
打开FirstActivity FirstActivity.onCreate FirstActivity.onStart FirstActivity.onResume FirstActivity跳转至SecondActivity FirstActivity.onPause Secon……
<<上一篇
下一篇>>
文章目录
关闭
目 录