Android Question What is the correct way to end a b4A Application ..

beelze69

Active Member
Licensed User
Longtime User
Hi !

What is the correct way to end a b4A Application ..

Can anybody post the code snippet for the same please ?

Thanks...
 

sorex

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