Sub Activity_Keypress (KeyCode As Int) As Boolean
Dim Answ As Int
Dim Txt As String
Log(KeyCode)
If KeyCode=KeyCodes.KEYCODE_BACK Then
Txt = "Do you really want to Quit the Program ?"
Answ=Msgbox2(Txt,"ATTENTION","Yes","","No",Null)
If Answ=DialogResponse.POSITIVE Then
Return False
Else
Return True
End If
End If
end sub