1. On my DROID I have the built in "Return, Menu, Home and Search" Icons. How do I detect the android "return" icon click?
Thanks,
Heloman
Thanks,
Heloman
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event
If KeyCode=KeyCodes.KEYCODE_BACK Then
'Give statements to execute when Back key is pressed
Return True
End If
End Sub
Return is actually the Back key. This is how you trap the Back key
B4X:Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event If KeyCode=KeyCodes.KEYCODE_BACK Then 'Give statements to execute when Back key is pressed Return True End If End Sub