It is stated in documentation that onSaveInstanceState(Bundle)
is called before placing the activity in such a background state, allowing you to save away any dynamic instance state in your activity into the given Bundle. Note that it is important to save persistent data in onPause()
instead of onSaveInstanceState(Bundle)
.
What is the best way to distinguish dynamic data with persistent?