Resuming from where?

Cableguy

Expert
Licensed User
Longtime User
Is there any way of knowing from what activity the "current" one is resuming from, or if its resumong from another System/app instance???
 

JonPM

Well-Known Member
Licensed User
Longtime User
Do you mean something like MainActivity-->SecondActivity-->MainActivity? And know that there user came from second act?

Sent from my DROIDX
 
Upvote 0

COBRASoft

Active Member
Licensed User
Longtime User
You could use a code file and add a global 'PreviousActivity' field. At the end of each activity pause you set that one as the 'previous'. In the Activity resume you can check the 'Previous' for its value and act accordingly.

The method written above works when all activities are in the same project or are using the same code module.
 
Upvote 0
Top