technically, for the purpose of shouldoverrideurlloading(), you only need the webkitwebviewclient module. shouldoverride is handled by webviewclient.
but let's take a step back. below i have attached a simple working example for you.
this is how you handle shouldoverride:
Sub Globals
'These global variables will be redeclared each time the activity is created.
Dim webview As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
webview.Initialize("webview")
Activity.AddView(webview, 0%x,0%y,100%x,200%y)
webview.Loadhtml(File.ReadString(File.DirAssets,"test.html"))
End Sub
Sub webview_OverrideUrl (Url As String) As Boolean
If Url.Contains("google") Then
ToastMessageShow("blocking this url!",False)
Return True
Else
ToastMessageShow("Cannot override this link! Must load.",False)
Return False
End If
End Sub
it's unclear from your post whether or not you understand under what conditions shouldoverrideurl is triggered. it's also not clear whether there might be some other error in your code that prevented webkitwebview from working in the first place. run the example and see what you see.
edit: sorry, i just noticed a typing error: the height of the webview should be "100%y", not "200%y". it doesn't affect how the example runs, so you can leave it.