Android onConfigurationChanged 不执行

自从Android 3.2(API 13),screen size也开始跟着设备的横竖切换而改变。

所以,在AndroidManifest.xml里设置的MiniSdkVersion和 TargetSdkVersion属性大于等于13的情况下,

如果你想阻止程序在运行时重新加载Activity,除了设置"orientation",你还必须设置"ScreenSize"。

解决方法:
AndroidManifest.xml中设置android:configChanges="orientation|screenSize“

原文地址:https://www.cnblogs.com/lovewife/p/3665634.html