safety certificate and webview

jota

Active Member
Licensed User
Longtime User
As I can load a web page with the security certificate, in webview control?
Thanks
 

jota

Active Member
Licensed User
Longtime User
If I open the page in an external browser, a dialog comes to accept the certificate.

But when I open the control webview does not leave any window and not load any content in the control.

By testing I see that the page load well in version 4.0 of Android, but not in version 2.3. What can happen?
 
Upvote 0

jota

Active Member
Licensed User
Longtime User
HttpClient web looking for addresses on my device. This is the code I use:

Sub Globals
Dim hc As HttpClient
Dim req As HttpRequest
Dim WebView1 As WebView
Dim url As String
End Sub

Sub Activity_Create(FirstTime As Boolean)
WebView1.Initialize("wb")
Activity.AddView(WebView1,0,0,100%x,100%y)
hc.InitializeAcceptAll("hc")
url = "http://xxxxx" 'the website of my client
req.InitializeGet(url)
hc.Execute(req, 1)
End Sub

Sub hc_ResponseSuccess(Response As HttpResponse, TaskId As Int)
Dim t As String
t = Response.GetString("UTF8")
WebView1.LoadHtml(t)
Response.Release
End Sub
Sub hc_ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
Log("Error")
Response.Release
End Sub

Do not put the URL to load, For if you do not like my client.
 
Upvote 0

jota

Active Member
Licensed User
Longtime User
You could guide me on the solution with a library?
I also would serve using your phone's browser with intent if he could somehow detect the page that is displayed or when you exit the web browser. Is this possible?
 
Upvote 0
Top