Android Question Migrating from Http to OkHttp

Discussion in 'Android Questions' started by flent, Mar 23, 2018.

Tags:
  1. flent

    flent Member Licensed User

    I HAVE

    Dim webclient As OkHttpClient
    Dim webrequest As OkHttpRequest

    THEN

    Sub webClient_ResponseSuccess (resp As OkHttpResponse, TaskId As Int)

    xml = resp.GetString("UTF8")

    RELATED TO THE OLD Http LIBRARY.

    What is the equivalent instruction for OkHttp???

    Many many thanks to solvers.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Moved to the questions forum.
    The above code is not good and will not work on Android 4+ devices.

    You should use OkHttpUtils2 like all B4X developers.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice