Android Question [B4X] B4XPages - invoking CloseRequest

Alessandro71

Well-Known Member
Licensed User
Longtime User
How to programmatically invoke CloseRequest, as the user clicked the back button?
Calling ClosePage seems to bypass that
Use case is a "quit" button that should follow the same codepath as a back button on the MainPage and thus exiting the app
The "old way", invoking Activity.Finish would call Activity.Pause with UserClosed, but ClosePage has a different logic
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…