Dear all,
using this:
how could the messagebox2 block the back button to be pressed again and override the messagebox itself?
using this:
B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
Dim result As Int
result = Msgbox2("msg", "title", "yes","cancel","no", Null)
If result=DialogResponse.NEGATIVE Then
ToastMessageShow("do not exit",False)
Return True
Else If result=DialogResponse.positive Then
ToastMessageShow(" exit",False)