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().
You are correct. onPause, onStop, onDestroy.
Here are the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With