Questions tagged as 'retrofit'

1
answer

Popular ListView with data from Retrofit2

I'm trying to pupolar a listView with information I get from WS through Retrofit2. But error somewhere and nothing is presented, neither error nor the listView. can give me strength for kindness. Follow the code section. //inicio um Arr...
asked by 14.01.2017 / 12:09
1
answer

NetworkError: 400 Bad Request

When sending a post, I got the message in the NetworkError message: 400 Bad Request. In the Development Environment no error occurs, data is synchronized from device to Tomcat on my internal network successfully. I have published the syste...
asked by 16.01.2017 / 16:30
1
answer

Android: Error when using Retrofit with XML Converter

I'm doing a simple example of Retrofit on Android with an XML converter, but every time I run I get the following exception: java.lang.RuntimeException: org.simpleframework.xml.core.ValueRequiredException: Unable to satisfy @org.simpleframewor...
asked by 31.10.2017 / 22:40
1
answer

Retrofit always returning null in Response

The answer comes with code 200, that is, correct, but the body is null. Follow the model: public class MovieModel { @SerializedName("imdbID") @Expose public String idMovie; @SerializedName("Title") @Expose public St...
asked by 25.07.2017 / 20:48
1
answer

Image arrives null on the server

I am sending data using the retrofit, I observe the entire request until the end and I get the code 200 more on the server side the image arrives null, as I am sending the image and texts the text arrives correctly, without problems however the...
asked by 10.01.2017 / 21:18
1
answer

Extract JSON data within JSON that comes from a Web Service serving an Android APP

Good evening, how are you? I'm developing an Android APP and it consumes data from a webservice, however I'm having trouble getting some information into the APP. This is the JSON that I return to my APP: { "cod":1 ,"dados":...
asked by 18.01.2017 / 06:39
1
answer

Error sending ArrayList via POST in Retrofit 2: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING

When I try to send an ArrayList via @POST to be saved in my webserver with Retrofit2, the ArrayList is saved, however I am getting the following error:    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1...
asked by 29.12.2015 / 14:34
1
answer

Spinner Android Retrofit

Good morning I'm creating an app, and I need it to have a spinner, which pulls all the data from a column of the database. But it turns out that when I pull it back the data but only that it makes the list view get into several instead of throwi...
asked by 08.11.2017 / 13:50
1
answer

Android Upload JSON

I need to get information from a JSON, I created a code in php that transforms the database into mySQL into JSON link
asked by 12.09.2017 / 15:54
0
answers

JSon Retrofit Malformed

I'm getting my return on json like this: { "success": 1, "email": "[email protected]" } But the retrofit is saying it's malformed: It gives the following message:    use JsonReader.setLenien (true) to accept malformed JSON at...
asked by 11.08.2017 / 16:10