API 4 will raise the Activity Pause when Exit is selected. API 5 will not.
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
Select Msgbox2("Do you want to Exit?", "", "Exit", "Cancel", "", Null)
Case DialogResponse.CANCEL: Return True
End Select
End If
Return False
End Sub
Last edited: