Issue
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?
Solution
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.

Answered By - Matt Clark
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.