I tried to intercept Back button it works but at the end it exits the app. How to avoid this:sign0085:
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event
Dim KC As Boolean
If KeyCode = 4 Then KC = True
If KC=True Then
panel2.Visible=False
panel1.Visible=True
End If
End Sub
Sub Activity_KeyPress (KeyCode As Int) As Boolean 'return true if you want to consume the event
Dim KC As Boolean
If KeyCode = 4 Then KC = True
If KC=True Then
panel2.Visible=False
panel1.Visible=True
End If
End Sub