<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<activity
android:screenOrientation="sensor"
android:configChanges="orientation|keyboard"<!--据说方向改变时,不recreate,而是走onConfigurationChanged--> ...
@Override
public void onConfigurationChanged(Configuration newConfig) {}