Android Question How to manipulate activity queue?

Avansys

Member
Licensed User
Longtime User
Hi everyone,

I want to manipulate the activity queue, namely, I login in my app, and start activities while I use the app, but I never finish an activity, but when I logout, I have to close all activities that started, but how can I know what activities were started? and how can I close them?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
You can create a sub for logout which do the logout-logic and then exits the app...
If you know the user does not come back to the actual activity then you can do the following (I THINK! I read such somewhere here in forum but dunno if that works ;-)

B4X:
Activity.Finish 
StartActivity(newactivity)

With this the actual activity is removed from the stack and the new one is called. if the user then exits the newactivity then he go back to last activity on stack.

Without warranty! I really don´t know. Just have something in my mind... After a short search i found this
 
Upvote 0
Top