Activity生命周期记录

打开FirstActivity

1
2
3
FirstActivity.onCreate
FirstActivity.onStart
FirstActivity.onResume

FirstActivity跳转至SecondActivity

1
2
3
4
5
FirstActivity.onPause
SecondActivity.onCreate
SecondActivity.onStart
SecondActivity.onResume
FirstActivity.onStop

SecondActivity返回至FirstActivity

1
2
3
4
5
6
7
SecondActivity.onPause
FirstActivity.onActivityResult
FirstActivity.onRestart
FirstActivity.onStart
FirstActivity.onResume
SecondActivity.onStop
SecondActivity.onDestroy

FirstActivity锁屏

1
2
FirstActivity.onPause
FirstActivity.onStop

FirstActivity亮屏

1
2
3
FirstActivity.onRestart
FirstActivity.onStart
FirstActivity.onResume

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :