Link First: http://www.cnblogs.com/xiaoQLu/p/3324503.html
Project requirements to do the horizontal screen, when the cross-screen, the life cycle function will be disorderly execution, the Internet to find a lot of information.
The results are as follows:
Only the following properties can be configured to achieve a screen switch without re-executing the life cycle, that is, do not execute OnDestroy, and then OnCreate and so on.
Android:configchanges= "Orientation|keyboardhidden"
The result was disappointing because it was already configured in the project. The pit father is: The good switch time will execute onconfigurationchanged (), the method, the result also did not carry out. No way, only continue to search, search, and finally found the above this blog, pro-Test effective.
The conclusion of the blog post is as follows:
Finally, add a parameter, configured as follows:
Android:configchanges= "Orientation|keyboardhidden|screensize"
If you want to see the specific analysis of the above blog post, here also thank the man, thank you!
android-screen Switching problem (turn)