Android Question Activity_Pause & Activity_Resume

ValDog

Active Member
Licensed User
Longtime User
I'm either not understanding the relationship correctly or my program is somehow hosed...

My understanding is that when an activity (call it Activity3) is paused, the program should return to the Activity_Resume() in the activity module (call it Activity2) that initially started Activity3. Is this correct?

I am seeing two scenarios:

Main starts Activity 2, which then starts Activity 3. In one case when I pause Activity3 (back button) the program returns to the Activity2 dialog. In another case when I pause Activity3 (back button) the program returns to the Main dialog?

Can someone enlighten me?
 

NJDude

Expert
Licensed User
Longtime User
The way you described it is correct Main -> Activity2 -> Activity3 and pressing BACK will do Activity3 -> Activity2 -> Main, however, if you have a Activity.Finish somewhere in Activity2 then it will jump to Main.
 
Last edited:
Upvote 0

ValDog

Active Member
Licensed User
Longtime User
The way you described it is correct Main -> Activity2 -> Activity3 and pressing BACK will do Activity3 -> Activity2 -> Main, however, if you have a Activity.Finish somewhere in Activity2 then it will jump to Main.

That did it! Thanks!!
 
Upvote 0
Top