User data or state in order to handle events such as configuration changes or when the user receivesĪn incoming phone call and then returns to your application much later after your application Your application should be able to restart at any time without loss of Invoke configuration changes (such as changing the screen orientation) while performing various To test that your application restarts itself with the application state intact, you should Save your Activity state, read Save UI states. Restore the UI state of your activity across configuration changes. ![]() ViewModel objects, and persistent storage to save and To properly handle a restart, it is important that your activity restores its previous ![]() Your application adapt to new configurations by automatically reloading your application withĪlternative resources that match the new device configuration. When such a change occurs, Android restarts the running Some device configurations can change during runtime (such as screen orientation, keyboard
0 Comments
Leave a Reply. |