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
Sub Activity_Pause(UserClosed As Boolean)
Log("paused")
End Sub