横竖屏切换时不料执行onCreate,无效果

横竖屏切换时不想执行onCreate,无效果!
按照网上的介绍,横竖屏切换时不想让程序重新onCreate,

在AndroidManifest.xml中对应的activity里面添加一句:

android:configChanges="orientation|keyboardHidden"

结果毫无作用,不知道是什么原因?

------解决方案--------------------
你sdk版本是多少?

从sdk 3.2+,当手机屏幕发现旋转,新增加一个screenSize,这个值也会跟着发生改变。所以要不想重绘界面,需要把screenSize这项也要加入到配置文件中。

android:configChanges="orientation
------解决方案--------------------
keyboardHidden
------解决方案--------------------
screenSize"
Android Developer描述如下:
Caution: Beginning with Android 3.2 (API level 13), the "screen size" also changes when the device switches between portrait and landscape orientation. Thus, if you want to prevent runtime restarts due to orientation change when developing for API level 13 or higher (as declared by the minSdkVersion and targetSdkVersion attributes), you must include the "screenSize" value in addition to the "orientation" value.