I try to finish the program by activity.finish, but only after the user gets the possibility to go on.
See my code. What did I do wrong?
See my code. What did I do wrong?
B4X:
Sub STOP_Click
Dim result As Int
Msgbox2("You want to stop?","","Go on","","Stop",LoadBitmap(File.DirAssets,"upblack.jpg"))
If result = DialogResponse.NEGATIVE Then Activity.finish
End Sub