Most voted "retrofit" questions
Retrofit is a secure type HTTP client for Android and Java developed by Square, Inc.
Learn more…85 questions
Sort by count of
-
0
votes1
answer437
viewspass parameters on a request in the retrofit
I am studying retrofit and came across the following problem: am performing a get request at url https://jsonplaceholder.typicode.com/posts/1 but when mounting the request I cannot add the posts/1…
-
0
votes1
answer213
views404 when trying to access post url with springboot
Good evening, I have the code below with the implementation of a service Rest /teste123, and when calling this method from the angular-js code, already authenticated with the basic authentication of…
-
0
votes1
answer41
viewsConsume Retrofit json on my real device (smartphone)
I made an apirest with Springboot that works perfectly by the browser at the address. http://localhost:8080/pessoas_escalas I can consume the service locally by the Android Studio emulator, through…
-
0
votes0
answers23
viewsExpected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 Colum 2 path
I am trying to consume data from an API using retrofit, but whenever I try to connect it returns this error. I realized that an array would be expected but the API is returning an object. But I’m…
-
0
votes1
answer21
viewsretrofit 2 error malformed when sending a post
When I send the data via POST I return that JSON is wrong in the formation. Follow the script button Button btnretrofit =(Button)findViewById(R.id.btnretofit); btnretrofit.setOnClickListener(new…
retrofitasked 7 years, 6 months ago Leandro Andre da Silva 1 -
0
votes1
answer546
viewsPopular Listview Shapes with Retrofit 2
Although there is already a similar question, not clarified my doubt, my problem is the following, the code below is from onResponse of Retrofit, I’m starting now in Java, I would like to play the…
-
0
votes1
answer190
viewsResult Web Service RETROFIT in Other Activity - Android
I have a Web Service method using the Retrofit library that can be accessed from 2 different activities. How can I use the result of the Web Service method that is in a class and display on screen…
-
0
votes2
answers626
viewsConvert json array to retrofit
I have the following return in json { "cardapio": [ { "tipoprato": "SALADAS", "pratos": [ { "prato": "ALFACE + REPOLHO ROXO" } ] }, { "tipoprato": "PRATO PRINCIPAL", "pratos": [ { "prato":…
-
0
votes1
answer216
viewsReturn Vector within JSON Retrofit Array
How do I bring information from one vector inside another json-format vector to retrofit: I have my return: [ [ {"prato":"BROCOLIS C\/ SALSINHA"}, {"prato":"ACELGA"}, {"prato":"ALFACE + JERIMUM…
-
0
votes0
answers328
viewsProblem with Retrofit Return on Android
I’m trying to connect to the local network, using the RetroFit. In the local network I have a Rest that returns a json, but when I run the event to make it happen, an error happens I have an…
-
0
votes1
answer488
viewsProblem with accented JSON text - Android + Retrofit
I am consuming data from a webservice that returns a list with JSON objects, this way: [{"idPDV":3062,"nomeFantasia":"SEBASTIÃO JOSÉ DOS SANTOS","endereco":"RUA MANCHE CATAN DAVID,…
-
0
votes1
answer1067
viewsRetrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT
I’ve done some Retrofit projects and it always worked but I’m doing one that consumes the end-point of api.github.com and is giving an error and I’m not able to find a solution, I’ve done everything…
-
0
votes1
answer655
viewsListview by selecting position
I have a code I need him to select the item by its position... In case he is already selecting but he selects randomly. listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener()…
-
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
answer462
viewsRetrofit: Could not locate Responsebody converter for
I’m working on a system and I need Retrofit2 (with Spring Boot) but I’m not getting. Follow the source and error. @JsonIgnoreProperties({"codibge", "codestado"}) public class CEP { private String…
-
0
votes1
answer34
views -
0
votes1
answer235
viewsOnclick on android not working
Buenas pessoal, ok? I’m using a Recyclerview to popular my list on Android and for such have an Adapter and a view Holder. Follow Adapter source code with Viewholder public class MoviesAdapter…
-
0
votes1
answer225
viewsStackoverflowerror Retrofit With Basic Authentication
I have a Servicegenerator that creates the retrofit for min, it works great when I sign in and password for it, but when I try to use it without these options, my code goes into a loop and crash the…
-
0
votes0
answers760
viewsPOST request sending a String via Retrofit on Android
I need a lot of help from you, I’m wanting to make a POST request via Retrofit, send only one parameter: { "select":"select id || ' | ' ||senha_terminal,nome,login_web,null,5,null…
-
0
votes1
answer311
viewsHow to convert Jsonarray to Arraylist<> on android
Hello, all right? I would like your help to be able to convert a Jsonarray to Arraylist<> on android. I make a request that returns me the following Json: {"normal":{"test_graph":{"VALORES…
-
0
votes0
answers31
viewsRetofit2 accessing GET api
i am using retrofit2 to access an API... It turns out I can’t get the data from this API. Link to API used I managed to make my code work with this API: (That one), but when I redo the code to use…
-
0
votes2
answers320
viewsPOST using Retrofit is not returning to the Onresponse function
My application is made with Kotlin Retrofit and Gson. I have several gets to fetch information and work normally, manipulate the data returning in Onresponse and ok, works normally. But when I run…
-
0
votes1
answer160
viewsFailed to use Retrofit library in Android Studio
Following the tutorial below, http://www.vogella.com/tutorials/Retrofit/article.html which deals with the use of retrofit library, for testing, I created: One Activity who I called retrofit and a…
-
0
votes1
answer559
viewsRetrofit = Manipulating the Sponse
Well, I’m asking for more help from friends so really, I’m not getting the dynamics. Following tutorials and explanations here from the forum I am TRYING to use the Retrofit but it’s not working. I…
-
0
votes1
answer250
viewsUse Retrofit to popular a Recyclerview
I need to bring up a list of cities in one RecyclerView of a WebService using the Retrofit. But my List this coming null. I have a Class cidades with the data I need to take from WebService, to…
android android-studio web-service android-recyclerview retrofitasked 5 years, 7 months ago Regina Moraes 43 -
0
votes0
answers38
viewsHow to do a same @Multipart POST call by sending an image, String fields and also an Array of objects?
On a call, I register a professional, which involves sending your avatar, which appears in the first line as file and also send other attributes of the professional, for example, the place where he…
-
0
votes0
answers52
viewsPOST Requestbody and Multipart in retrofit2
How to send an image and jsonObject to the webservice in a single request in retrofit2? Interface @Multipart @POST("url") Call<Mensagens> setChatMessage(@HeaderMap Map<String,String>…
-
0
votes1
answer52
viewsSequential requests using asynchronous Retrofit methods
Hello. I am developing an application where it is necessary to synchronize the data at certain times. I am using Retrofit to connect to the api and send/receive the data, but each request needs to…
-
0
votes2
answers72
viewsHow to access a String inside the body() in the retrofit in Kotlin?
I’m trying to access the json content inside body() through retrofit. I need the "url" in String. What’s missing from my code? Debugging the code I saw that the response.body() is returning the…
-
-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
answers228
viewsHow to pass a search parameter in the retrofit with Kotlin?
I am trying to use the Retrofit library to make HTTP requests for the API: API Star War, with the Kotlin language, however I don’t know how to correctly pass a search parameter to an API function.…
-
-1
votes2
answers186
viewsHelp to pick up response values on Android with Retrofit
I am trying to use Retrofit to consume a resource but when using the values I am doing something wrong because nothing appears. Section in I make the search: final TextView codigoCliente =…
-
-1
votes1
answer216
viewsGet the Token from a JWT Api
I am having problems doing the authentication in an api with JWT standard, the token it comes in header and using the retrofit I am not getting it. The consumption of the api in Postman usually…
-
-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…
-
-2
votes1
answer839
viewsLogin with retrofit android
Hi I asked a question and could not help me, I have a webservice who’s making a get that when entered the user name it will allow access to the application and thus will pass the user to the next…