I'm learning Android programming for a class, and I have a quick question about how finish() fits into the Activity lifecycle.
When you make a call to finish(), what lifecycle callback is started? I presume it's onPause(), then onStop() and onDestroy(). Is this correct?
Really, I just want to make sure that it doesn't jump straight to onDestroy().
Really, I just want to make sure that it doesn't jump straight to onDestroy(). ???
but there is one exception when calling finish() result in activity lifecycle break this happens when u call finish() from onCreate() method in which case onDestroy() will be immediately called!
http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle)