Skip to content

Activity生命周期解锁修改成onRestart()->onStart()->onResume() #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Part1/Android/Android基础知识.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
* Activity退居后台,且系统内存不足,
系统会杀死这个后台状态的Activity(此时这个Activity引用仍然处在任务栈中,只是这个时候引用指向的对象已经为null),若再次回到这个Activity,则会走onCreate()–>onStart()—>onResume()(将重新走一次Activity的初始化生命周期)
* 锁屏:`onPause()->onStop()`
* 解锁:`onStart()->onResume()`
* 解锁:`onRestart()->onStart()->onResume()`

* 更多流程分支,请参照以下生命周期流程图
![](http://img.blog.csdn.net/20130828141902812)
Expand Down