I use
I know that Home is not possible to intercept, but there is a way to catch the exiting of application?
Something like an "Activity_Exit"..
I try but doesn't work..
B4X:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event
Msgbox(Keycode,"")
If KeyCode = KeyCodes.KEYCODE_BACK Then
If Msgbox2("Uscire dal programma?", "", "Si", "", "No", Null) = DialogResponse.POSITIVE Then
Return False
Else
Return True
End If
End If
End Sub
I know that Home is not possible to intercept, but there is a way to catch the exiting of application?
Something like an "Activity_Exit"..
I try but doesn't work..