I think I have shot myself in the knee with this one. If I have a webview, load an URL then click on a link, how do I get back to the page beforehand?
Unfortunately I have trapped the back button. If the back button is pressed and the webview is visible, I hide it and pass "true" to kill the event.
Searching the forum has not helped. Am I looking at the wrong sub???
Many thanks.
Unfortunately I have trapped the back button. If the back button is pressed and the webview is visible, I hide it and pass "true" to kill the event.
B4X:
Sub Activity_KeyPress(KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
If Webview1.Visible=True Then Webview1.Visible=False
Return True
End If
End Sub
Searching the forum has not helped. Am I looking at the wrong sub???
Many thanks.