Since i use the okhttp ibrary i have a getstring error in my code
This reads the value of a txt file online to show the online version
Any idea whats changed in the okhttp lib ?
With the old http lib it worked fine ?
B4X:
Sub check_Click
hc.Initialize("hc")
req.InitializeGet("http://download.filmspeler.nl/x/Version.txt") '<--- Replace this with your info hc.Execute(req, 1)End Sub
######## Fetch Data ########Sub hc_ResponseSuccess(Response AsHttpResponse, TaskId As Int)
Label5.Text = Response.GetString("UTF8")
End SubSub hc_ResponseError(Response AsHttpResponse, Reason AsString, StatusCode As Int, TaskId As Int)
Msgbox("Error in app: " & Response.GetString("UTF8"), "")
Response.Release
End Sub
This reads the value of a txt file online to show the online version
Any idea whats changed in the okhttp lib ?
With the old http lib it worked fine ?