因为如果要activity的在屏幕切换的时候不执行oncreate和ondestroy,我们需要在配置文件中加入android:configChanges="orientation|keyboardHidden"
但是3.0以后我们需要用
android:configChanges="orientation|screenSize|keyboardHidden"
这样才能保证每次横竖屏切换的时候不会一直oncreate和ondestroy