Most voted "okhttp" questions
13 questions
Sort by count of
-
3
votes0
answers658
viewsGET Okhttp Java Request
I’m using Postman, and when making a requisition GET, everything goes well and the JSON with the data.However, when I take the java code(below), this request and execute it, I am handed the…
-
2
votes1
answer178
viewsOkhttp only works on Lollipop
The Okhttp 2.6.0 library does not work in versions prior to Android 5. In versions prior to Lollipop always fires the exception: Exception Caused by: java.lang.Noclassdeffounderror:…
-
2
votes0
answers121
viewsRetrofit response coming in as null
I am trying to make a retrofit call from a list of objects (Registrations) and in Httploggininterceptor the answer is appearing normally. What might be going on? My call: CadastroApi cadastroApi =…
-
2
votes1
answer50
viewsOnclick crashing app, in database connection
Hello. I am developing a simple app with login and password, but there are always problems when trying to log in. It is worth saying that I am using Okhttp. This is Java: EditText txt_Email,…
-
1
votes2
answers102
viewsHow to set data correctly in Lisview?
Guys, I’m picking up a bit with asynchronous request on Android. I’m requesting a list of states on JSON, via OkHttp, and turn into a ArrayList states to be able to state ListView. However, in every…
-
1
votes1
answer303
viewsRetrofit, Response body always null but on the 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: Response.body() is always null, I can never catch json, even if I can…
-
1
votes1
answer981
viewsPOST request with Okhttp in JAVA
My question is like this, I’m using Postman to simulate these requests, then when I choose there to show the code as it would be in java shows this code below, but full of "strange characters" like…
-
0
votes1
answer36
viewsHow 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?
-
0
votes1
answer82
viewsProblem with threads on Android
I’m trying to get values from a json and play in a recycleview using OkHttp, he is taking the values and playing in the list, no errors, but I am not able to pass these values to the Adapter, the…
-
0
votes1
answer79
viewsError sending byte array with Retrofit2
I have the following problem, implemented a solution for sending images with Retrofit2, and my web service is on a server with SSL. The certificate was recently implemented, so it was already…
-
0
votes1
answer75
viewsProxy problems with Okhttp
I’m using the library Okhttp to request my application to the facebook api, but I need to work on a proxy network, when instantiating OkHttpClient() and call OkHttpClient.newCall(request).execute()…
-
-1
votes1
answer46
viewsDownload photo URL without file name
I use to download files and photos the Glide or the Retrofit but had never come across the need I’m having now. The url is type http://meuserver.com/user/4564654/qrcode the number is the user id and…
-
-1
votes2
answers989
viewsHTTP request works via POSTMAN but does NOT work via android app
I have an API for an android app that worked for a while. Used Laravel 5.3 on the server side and upgraded to 6.0. By android application, I have returned the error "400 - Bad Request", but via…