,开始猛看developer.android.com/。
无意发现了原来可以设置横屏切换不destroy和onStart的设置
for example:
<activity android:name=".MyActivity" android:configChanges="orientation|keyboardHidden" android:label="@string/app_name">
上面解释说:
Now, when one of these configurations change, MyActivity does not restart. Instead, the MyActivity receives a call to onConfigurationChanged().
onConfigurationChanged()来处理了,
整个功能叫 Handling the Configuration Change Yourself。
自定义处理配置改变?