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

Expert
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…