Saving and Restoring Activity Instance State Using the Lifecycle Handlers
Activities offer the onSaveInstanceState handler to persist data associated with UI state across sessions. It’s designed specifically to persist UI state should an Activity be terminated by the run time, either in an effort to free resources for foreground applications or to accommodate restarts caused by hardware configuration changes If an Activity is closed by … Read more