Hi all, I've just returned to an older project to rebuild it on my phone (can't find the APK), but it doesn't build. I've on version B4A V6.31. It's something to do with having to move from httputils2 to okhttputils2 and http to okhttp, which I've done, but the error I get now is on:
The line Response.GetString("UTF8") is not recognised. WebClient is the registered handler via
If I can't do GetString anymore on the OkHttpResponse object, how do I get the response?
Thanks,
Richard
B4X:
Sub WebClient_ResponseSuccess(Response As OkHttpResponse, TaskId As Int)
If TaskId = 1 Or TaskId = 2 Then
Dim suburb As String = "", street As String = ""
Try
Dim resultString As String
resultString = Response.GetString("UTF8")
blah blah blah
The line Response.GetString("UTF8") is not recognised. WebClient is the registered handler via
B4X:
dim webclient as OkHttpClient
webclient.Initialize("WebClient")
If I can't do GetString anymore on the OkHttpResponse object, how do I get the response?
Thanks,
Richard