PhilipBrown Active Member Licensed User Longtime User Feb 10, 2021 #1 Before B4XPages it was recommended to use Activity.Finish rather than ExitApplication to end an app, but B4XPages don't always have an Activity object so what is now recommended to terminate them?
Before B4XPages it was recommended to use Activity.Finish rather than ExitApplication to end an app, but B4XPages don't always have an Activity object so what is now recommended to terminate them?
Erel B4X founder Staff member Licensed User Longtime User Feb 10, 2021 #2 The term "terminate" is not accurate. The app isn't terminated, it only moves to the background. You can call B4XPages.ClosePage(Me) to close the current page. If it is the only page in the stack then the app will move to the background. You can move the app to the background with B4XPages.GetNativeParent(Me).Finish Upvote 0
The term "terminate" is not accurate. The app isn't terminated, it only moves to the background. You can call B4XPages.ClosePage(Me) to close the current page. If it is the only page in the stack then the app will move to the background. You can move the app to the background with B4XPages.GetNativeParent(Me).Finish