G geekbot71 New Member Aug 14, 2013 #1 Hi I have been using VB for years and have just started using B4A and I was wondering what code I can use to shut the app down from a button on the screen? I tried Exit as I would in VB and got an Error Any help would be greatly appreciated.
Hi I have been using VB for years and have just started using B4A and I was wondering what code I can use to shut the app down from a button on the screen? I tried Exit as I would in VB and got an Error Any help would be greatly appreciated.
Erel B4X founder Staff member Licensed User Longtime User Aug 14, 2013 #2 Activity.Finish closes the current activity. This is the best way to close the app. Upvote 0
mangojack Expert Licensed User Longtime User Aug 14, 2013 #3 I 'm presuming you mean a button you have added to your app .. Right click on button in Designer > Generate > Click B4X: Sub Button_Click Activity.Finish End Sub Cheers mj Upvote 0
I 'm presuming you mean a button you have added to your app .. Right click on button in Designer > Generate > Click B4X: Sub Button_Click Activity.Finish End Sub Cheers mj
G geekbot71 New Member Aug 15, 2013 #4 Thanks For the Help Taking a few days to get used to android Upvote 0