Android Question close and Activity Go to Main

Roberto P.

Well-Known Member
Licensed User
Longtime User
I created an app that opens 3-4 activity. When I last activity, I want to return to the main at once.

To do this, I used the following code:

B4X:
Activity.Finish
StartActivity (Main)

when I leave the app from the main, reappears the last open activity.
Is there a way to permanently destroy the activity before going into the Main, so not reopen when I leave the app?

Thank you
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
thanks for tip, works for the last activity.

Now I should find a way to call all other previous activity that were "in pending". Is there a way to close them all recursively, type close to the activity?
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
Erel,
I would try to create a list of activity that have been opened (in the path of opening various activty) and call the Finish of all activity on the list.
I can not do it in a form because they do not like that I create a list of activity !?
 
Upvote 0
Top