Questions tagged as 'retrofit'

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

Return Vector in Array JSON Retrofit

How do I bring information from a vector into another vector in json format for the retrofit: I have my feedback: [ [ {"prato":"BROCOLIS C\/ SALSINHA"}, {"prato":"ACELGA"}, {"prato":"ALFACE + JERIMUM COZIDO"} ], [ {"pr...
asked by 02.08.2017 / 17:58
1
answer

Retrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT [duplicate]

I've done some Retrofit projects and it always worked but I'm doing one that consumes end-point from api.github.com and is giving an error and I can not find a solution, I've done everything I could, if anyone knows what to do . The error...
asked by 13.09.2017 / 19:59
1
answer

Result Web Service RETROFIT in Another Activity - Android

I have a Web Service method using the Retrofit library that can be queried from 2 different Activities. How can I use the result of the Web Service method that is in a class and display on an Activity? How can I also update a ListView...
asked by 06.07.2017 / 13:25
1
answer

Pass more than one parameter through URL

I have the following code: public interface service { @GET("?acao=R&tipo_refeicao={tipo}&data={data}") public void getCardapio( Callback<List<Cardapio>> getCardapio(@Query("tipo") int tipo, @Quer...
asked by 31.07.2017 / 23:41
1
answer

How to make a post using Retrofit

I need to create a post in the retrofit to which the submission follows this pattern, I have each class separately and a class IDVerification that contains all together, and I do not know how to amount this post { "facebookProfile":{...
asked by 26.01.2016 / 20:24
1
answer

Consume json Retrofit in 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 from the Android Studio emulator via the address set in Retrofit. .baseUrl("http...
asked by 12.10.2018 / 22:09
0
answers

Retrofit2 API call is not performed

Good evening!   I am trying to do some testing to learn how to tinker with retrofit and RecyclerView and am using the example of the coinmarketcap site API in v2. But the service call is not entering the enqueue method, here is the configuration...
asked by 19.09.2018 / 02:22
1
answer

How to convert JsonArray to ArrayList in android

Hello, how are you? I would like your help to be able to convert a JsonArray to ArrayList < > on android. I make a request that returns the following Json: {"normal":{"test_graph":{"VALORES (R$)":"valor"},"randons":[],"id":"","...
asked by 21.10.2018 / 03:45
0
answers

Retrofit does not recognize adapter

Error: Caused by: java.lang.IllegalArgumentException: Could not locate call adapter for rx.Observable<java.util.List<pojo.Professional>>. Tried: * com.jakewharton.retrofit2.adapter.rxjava2....
asked by 25.08.2018 / 20:32