Han Mengfei sha Han Yafei [email protected] yue31313 Han_meng_fei_sha
The method at the time of creation of the next activity will not be executed until the execution of this method is completed at the time of the pause.
Do not work long hours in the method of pausing.
The method to store and recover data when the instance state is saved and when the instance state is reset is called only when the activity terminates abnormally. Other conditions will not trigger this.
Screen rotation activity does not re-walk the life cycle, you can configure Android in the manifest file: Configuration change: = "direction | screen Size"
In Android 3.2 (API 13) version above, after setting the activity of the android:configchanges= "Orientation|keyboardhidden", there is no effect, The various lifecycles are still recalled as screen size starts to change with the device's toggle. So, in the Android 3.2 version, if you want to prevent the screen from re-calling each life cycle, you need to add screensize,
Example: android:configchanges= "Orientation|keyboardhidden|screensize"
Android OnPause Onsavedinstance