Android Question Close all open B4XPages and go back to B4XPages.MainPage

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

Is there a way to close all open B4XPages and back to B4XPages.MainPage? I'm looking for a method to reset the navigation stack or similar functionality. Any suggestions on how to implement this would be greatly appreciated.

Thank you!
 

mangojack

Well-Known Member
Licensed User
Longtime User
B4X:
B4XPages.ShowPageAndRemovePreviousPages("MainPage")

as stated by Erel in the B4XPages Tutorial (post #3) ...
This causes the previous pages on the stack to be removed.
 
Upvote 2

LucaMs

Expert
Licensed User
Longtime User
ShowPageAndRemovePreviousPages is the correct answer.

Yes, I "thought" it was:

ShowPageAndRemovePreviousPage -s

1713164655714.png
 
Upvote 0
Top