B beelze69 Active Member Licensed User Longtime User Jan 5, 2019 #1 Hi ! What is the correct way to end a b4A Application .. Can anybody post the code snippet for the same please ? Thanks...
Hi ! What is the correct way to end a b4A Application .. Can anybody post the code snippet for the same please ? Thanks...
B beelze69 Active Member Licensed User Longtime User Jan 5, 2019 #3 sorex said: B4X: mainactivity.Finish Click to expand... Where should I type this code in my b4A.. Assume I have a button named Exit.. Do I type this in the Button_Click Event ? Thanks Upvote 0
sorex said: B4X: mainactivity.Finish Click to expand... Where should I type this code in my b4A.. Assume I have a button named Exit.. Do I type this in the Button_Click Event ? Thanks
S sorex Expert Licensed User Longtime User Jan 5, 2019 #4 yes, it would then be something like B4X: sub btnExit_Click Activity.Finish end sub mainactivity was a variable holding the activity(B4A) or root panel (B4i) in a class. so the above is the correct syntax. Upvote 0
yes, it would then be something like B4X: sub btnExit_Click Activity.Finish end sub mainactivity was a variable holding the activity(B4A) or root panel (B4i) in a class. so the above is the correct syntax.
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2019 #5 If your app is made of multiple activities and you are targeting Android 4+ then you can close all of them with: https://www.b4x.com/android/forum/threads/clear-back-history.78129/#post-495126 Upvote 0
If your app is made of multiple activities and you are targeting Android 4+ then you can close all of them with: https://www.b4x.com/android/forum/threads/clear-back-history.78129/#post-495126