Skip to content
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

锁定屏与解锁屏幕 只会调用onPause(),而不会调用onStop()方法 #10

Open
mrldroid opened this issue Jul 8, 2016 · 5 comments

Comments

@mrldroid
Copy link

mrldroid commented Jul 8, 2016

这貌似调用stop方法啊

@Jankin6
Copy link

Jankin6 commented Jul 26, 2016

是啊,会调用onStop(), 解锁屏幕也会重新调onRestart()

@XhstormR
Copy link

他这个好像是从哪里复制过来的,我从另外一个地方也看到过这段话,是错的。

@anAngryAnt
Copy link
Collaborator

是的 会调用onStop() 不好意思哟,会改过来

@EspoirX
Copy link

EspoirX commented Nov 2, 2016

锁屏:onPause onStop
解锁:onRestart onStart onResume

@CrazyMo
Copy link

CrazyMo commented Nov 12, 2016

无论是否配置了android:configChanges=”orientation|screenSize”
锁屏时(按Home键也是一样):onPause()——>onSaveInstanceState()——>onStop()
解锁时:onRestart()——>onStart()——>onResume()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants