I have an app that opens web pages from a menu. Having trouble getting it to NOT close every time you click the android back button (drops out of app).
Tried this code:
Sub activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
WebView1.Visible = False
ListView1.Visible = True
End If
End Sub
Does not work, (listview1 is my main menu I want it to come back to) app still closes if you click the android back button. Does it have to go in some place special?
Tried this code:
Sub activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
WebView1.Visible = False
ListView1.Visible = True
End If
End Sub
Does not work, (listview1 is my main menu I want it to come back to) app still closes if you click the android back button. Does it have to go in some place special?