android-lifecycle icon indicating copy to clipboard operation
android-lifecycle copied to clipboard

onSaveInstanceState() of Activity is called before onStop(), not onDestroy()

Open RexAyanami opened this issue 8 years ago • 0 comments

According to Android doc: (https://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)) In Fragment, this method may be called at any time before onDestroy(); But in Activity, this method will be called before onStop() without guarantees against onPause()

RexAyanami avatar Apr 19 '17 21:04 RexAyanami