Androidクロススクリーン切り替え-Handling the Configuration Change Yourselfを破棄しない

656 ワード

しばらくの間システム開発をした後、自分の基礎知識がたくさん忘れられたことに深く気づいた.
ああ、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と呼ばれています.
カスタム処理構成の変更?