Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then 'back key pressed
wv.Back 'webview.back
Return True 'Return True to consume the event
End If
End Sub
You could also add some code so before doing the wv.back, it will first check to see if the last navigated URL for webview is the first URL that webview navigated to, and if so that means webview is back at it's original starting point/url (meaning the user navigated back to the first page), so another wv.back would do nothing, so when this condition happens, don't consume the back-key and let android handle the back key.