Hi to all. As the title of this post, I need to update a very old project to work in Android 10. The most critically parts are the http requests: I read new posts about this, but unfortunately I do not understand how to modify them. An example code is here:
I receive a string response like this. I tried to sitch to OkHttpResponse but the GetString method in Response no longer exists.
How can I do the update? Thanks to all!
B4X:
Sub ClientPosti_ResponseSuccess (Response As HttpResponse, TaskId As Int)
Dim ResponseData As String
ResponseData = Response.GetString("UTF8")
Response.Release
' Response example
' *OK*@{"status": 0,
' "posto": ["9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
' }
' Work with ResponseData string...
I receive a string response like this. I tried to sitch to OkHttpResponse but the GetString method in Response no longer exists.
How can I do the update? Thanks to all!