Android Question Always to call Activity.Finish?

Alwinl

Member
Licensed User
Longtime User
I have read up on the lifecycle of Activities but there is something I am not sure about. When launching a new activity, I use StartActvity and have a 'back' button on the new activity where I use Activity.Finish.
I have noticed that when going back to the calling activity only 'Resume' is fired, not 'Create' implying that the activity was not destroyed.

My question is - is it advisable to always use Activity.Finish on the first activity when starting a second one, thereby only having one activity 'live' at any given time? Or does this simply depend on the usage scenario
 

Alwinl

Member
Licensed User
Longtime User
I just thought of something else on this - are process globals available even when the activity where it's defined is destroyed?
 
Upvote 0
Top