Activity.LoadLayout("Main")chromeclient
Yes, this link shows you how to do it:I saw chromeclient is with webviewextras right?
wve.addWebChromeClient(WebView1, "WVE")
WebView1.LoadUrl("https://www.google.com")
ResponseError. Reason: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found., Response:
there is a way to get webview to ignore ssl issues, but HU2_ACCEPTALL is not actually it. you use HU2_ACCEPTALL with httputils2.
you download the url with httpjob.download (after setting hclient HU2_ACCEPTALL). that should get you the html. check the download first (hint: log it).
assuming you actually get something, load that into the webview.
to use the webview directly, you need to consume the onReceivedSslError event. if you know how to do that, fine. otherwise, try what's in the first paragraph. if job.download gets you nothing, then the problem may be elsewhere. show us the httpjob code and explain exactly what you did to set HU2_ACCEPTALL. we'll go from there.
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private WebView1 As WebView
Private we As WebViewExtras
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
we.Initialize(WebView1)
Dim client As DefaultWebViewClient
client.Initialize("client")
we.SetWebViewClient(client)
WebView1.LoadUrl("https://192.168.0.200/")
End Sub
Sub client_ReceivedSslError(SslErrorHandler1 As SslErrorHandler, SslError1 As SslError)
Log(SslError1)
SslErrorHandler1.Proceed
End Sub
The link is dead, do you have other link to download it?You have to download lib from http://b4a.martinpearman.co.uk/webviewextras/