I have read documentation on onResume()
and onStart()
but one thing I'm still not cleared is under what scenario does onResume()
get called without onStart()
being called before it?

- 9,664
- 4
- 30
- 41

- 733
- 7
- 23
-
I think this answer will help http://stackoverflow.com/questions/4553605/difference-between-onstart-and-onresume – aksdch11 Mar 26 '14 at 18:46
-
Take a look at [this](http://developer.android.com/reference/android/app/Activity.html) diagram, it's self explanatory. – ja_mesa Mar 26 '14 at 18:54
5 Answers
Please Refer to the Android Activity Lifecycle Documentation.
onStart
is called when your application first starts.
If the user click the home button, or another app takes focus, onPause
will be called.
If the activity regains focus, while stil running on the device, onResume
will be called, and onCreate
will NOT be called again.
If the user uses the activity manager to close the application, and then relaunches it, onCreate
will be called again.
Note, every time onCreate
is called, onResume
is also called.

- 27,671
- 19
- 68
- 123
Check below chart:
In case your activity is visible but not active - onPause will be called, and then when you return to this Activity - onResume

- 2,469
- 13
- 22
One such scenario where onResume()
is called without onStart()
being called is change of Focus. Think about a dialog popping up on the screen while you're using the application. This is the case when onPause()
is called, followed by onResume()
after dismissal of dialog.

- 87
- 1
- 9
onStart() gets called once each time the app is launched and is actually called after oncreate()
onResume() gets called instead if the app is already running, just in the background.
if you use onPause(), on Resume will likely get called when you bring your app up again, basically onResume() is a reusable onStart() for when the app is already started.
onResume can sometimes be called when switching activities, onStart only gets called when creating one.

- 1,682
- 2
- 16
- 22
onResume()
is called without onStart()
when the activity resumes from the background.

- 7,356
- 7
- 42
- 67