I believe onResume
will be called anyways even after pause
or stopped
.
onRestart
may be called if activity has been stopped
in the background
The recommendation is to save your data in onPause
and rebuild it on onResume
with some flags, so flags can tell you if onResume
called after onPause
/onStopped
or Activity is freshly created.