Android Question Showing website to webview using Okhttp?

Jeboiii

Member
Licensed User
Longtime User
Sub View_website
job1.Initialize("Job1", Me)
job1.Download("http://google.com")
End Sub

Sub JobDone (Job As HttpJob)
If Job.Success = True Then
Log(Job1.GetString) '---> How to show this site from webview?? ("webview1.Loadurl(Job1.GetString)" was unable to view the site)
Else
ToastMessageShow("Error: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub
 
Last edited:

Jeboiii

Member
Licensed User
Longtime User
I know that DonManFred, My purpose of using this is just to test whether the page is available or not to prevent "Webpage is not available" from the webview. I read some comments that I need to use httpUtils2/Okhttp. Hope you get my point.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…