Ciao ragazzi con B4x non riesco più ad intercettare il tasto indietro del cellulare.
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
If KeyCode = KeyCodes.KEYCODE_BACK Then
If KeyCode = 4 Then
btnConnect_Click
End If
End If
Return True
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
If KeyCode = KeyCodes.KEYCODE_BACK Then
If KeyCode = 4 Then
btnConnect_Click
End If
End If
Return True
End Sub