Questions tagged as 'retrofit'

1
answer

What fails when sending data with retrofit to the api in SLIM?

Hi, I am working with retrofit 2.3.0 and slim v2, and when sending the data by means of retrofit, the json that has to be received is not returned and it may not even send the data of the form, since another function of the api if it works for m...
asked by 09.09.2017 / 00:03
1
answer

Error in request Retrofit + RxJava

I am starting with RxJava and I try to merge it with requests made with retrofit (which work correctly), but I have run into an error, which I hope can help me. I share fragments of my code: My dependencies: compile 'com.squareup.retrofit2:ad...
asked by 15.07.2017 / 02:24
1
answer

Error using @POST with @Body in interface Retrofit on Android

I have a problem using Retrofit in a project that manages Java and Kotlin at the same time and I can not find information about it, I explain ... I already have my service generator for Retrofit and my interface, both in Java; aside I have my...
asked by 09.07.2017 / 23:52
1
answer

Convert JsonArray to JAVA POJO android

With retrofit I use a JsonArray, I want to get elements from the Json Objects list this is my Json { "Codigo": 0, "FechaHora": "2017-07-11T11:23:11", "Mensaje": "Ok", "Data": [ [ { "Id": 1, "Nombre": "Hum...
asked by 12.07.2017 / 05:05
0
answers

error when getting data from a web service with Retrofit

I have a finished app that sometimes crashes my users (he does not do it to me) ... google sends me this stack trace: java.lang.NullPointerException: at com.mal.saul.preciosbitcoinmexico.Fragment.FragmentPrincipal. realizarCambioPrecio(Fr...
asked by 02.06.2017 / 00:37
1
answer

Retrofit, login correctly but the app is closed

Well then that, trying to change the activity by pressing the button, enters the success correctly but closes the application with the Intent there. Did I leave something behind? The call to Retrofit mLoginButton.setOnClickListener(new...
asked by 28.03.2017 / 20:58
1
answer

How to serialize a data type date, with retrofit?

Good day. I have an Android form in which in one of the fields I select a date, this data is sent by the method POST , for this I am using retrofit , but this date I must serialize it or convert it to this format:    yyyy-MM-dd...
asked by 15.12.2016 / 16:44