Sub Activity_KeyPress (KeyCode As Int) As Boolean
Select KeyCode
Case KeyCodes.KEYCODE_BACK
Log("%%% to saliendo %%%")
Saliendo
Return True
End Select
End Sub
Sub Saliendo
Log("%%% in saliendo %%%")
Dim sf As Object = xui.Msgbox2Async("Confirma salida?", "Apagando...", "Si", "", "No", Null)
Wait For (sf) Msgbox_Result (Result As Int)
Log("%%% back from wait %%%")
If Result = xui.DialogResponse_Positive Then
ExitApplication
End If
Return
End Sub