Sub getWebPageTitle(wv As WebView) As String
Dim result As String = ""
Try
' Get the webview
Dim joWV As JavaObject = wv
' Get the webengine from the webview using method getEngine
Dim joWE As JavaObject = joWV.RunMethod("getEngine", Null)
' Obtain the page title from the webengine javaobject using method getTitle
result = joWE.RunMethod("getTitle", Null)
Catch
result = LastException.Message
End Try
Return result
End Sub