Questions tagged as 'okhttp'

0
answers

Request GET OkHttp Java

I'm using Postman , and when I make a request GET , everything happens in a good way and returns the JSON with the data. But by taking the code in java (below), of that request and executing it, I get the following message...
asked by 02.10.2017 / 22:29
1
answer

OkHttp only works on Lollipop

The OkHttp 2.6.0 library does not work on versions prior to Android 5. In versions prior to Lollipop always throws the exception: Exception    Caused by: java.lang.NoClassDefFoundError: com.squareup.okhttp.internal.Util                  ...
asked by 06.12.2015 / 19:06
0
answers

Response retrofit arriving as null

I am trying to make a call via retrofit of a list of objects (Cadastros) and in the HttpLogginInterceptor the response is appearing normally. What could be happening? My call: CadastroApi cadastroApi = retrofit.create(CadastroApi.class);...
asked by 11.01.2016 / 17:42
2
answers

How to set data correctly in Lisview?

Well, I'm getting a lot of asynchronous request on Android. I am requesting a list of states in JSON , via OkHttp , and transforming into ArrayList states to be able to set states in ListView . However, in all the ways I...
asked by 18.10.2016 / 03:01
1
answer

POST Request with OkHttp in JAVA

My question is, I'm using postman to simulate these requests, so when I choose there to show the code as it would be in java it shows this code below, but it's full of "strange characters" like this WebKitFormBoundary7MA4YWxkTrZu0gW and i...
asked by 02.10.2017 / 19:29
1
answer

Retrofit, response body always null but on server is status 200

I am implementing an Android application using Retrofit 2, the service is generic the server side is working. The problem is: The response.body () is always null, I can never get json, even though I can print it with OKHTTP. How to solve t...
asked by 20.11.2016 / 12:13
1
answer

Error in Sending Byte Array with Retrofit2

I have the following problem, I implemented a solution to send images with Retrofit2, and my web service is on a server with SSL. The certificate was recently deployed, so it was already working. Seeing some implementations, I did the following...
asked by 27.09.2017 / 12:59
1
answer

Problem with threads on Android

I'm trying to get values from a json and play on a recycleview using OkHttp , it's getting values and playing in the list, without errors, however I'm not able to pass those values to the adapter, the list is getting null in...
asked by 09.05.2017 / 06:54
1
answer

How to upload BD backup to the server using Okhttp?

How to upload the .db file (SQLite backup) from the android device to a server using the Okhttp, java, and PHP library?     
asked by 25.12.2016 / 22:01
1
answer

Proxy problems with OkHttp

I'm using the OkHttp library to make my application requests for facebook api, however I need to work on one network with proxy, when instantiating OkHttpClient() and calling OkHttpClient.newCall(request).execute() I get a timeou...
asked by 22.08.2018 / 15:43