Questions tagged as 'retrofit'

1
answer

Null object reference in a RecyclerView pointing to a package

I am working on an application of time and the design is with three tabs, the problem comes to me when I show the predictions for the next five days in a recycler , which generates an error indicating that I invoke a reference of null obje...
asked by 04.01.2017 / 21:12
0
answers

Error consuming web service POST urlencoded with Android Studio retrofit2

I'm just trying to consume services with Android Studio and GET services have worked well, but with POST services it does not work for me. I have tried several ways that I have found out there and the answer always goes by the onFailure side....
asked by 17.12.2018 / 22:26
1
answer

Problems with retrofit and picasso

I have a problem with my retrofit and picasso, when calling the server that is a json I need to show a list of images, but when I open the app I get a repeated image but if I close and open the app I load another but repeated, try to verify with...
asked by 13.12.2016 / 03:43
0
answers

Retrofit, does not show the list of cities when looking in the dialog of the floating action button

Well, that, I have implemented an application with 3 tabs and I want to update all the tabs when clicking when it shows the cities in the dialogue, the fact is that it does not even show me the cities, I do not know what I'm doing wrong. My a...
asked by 08.12.2016 / 16:48
1
answer

Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

I'm new with the retrofit library and I use version 2.4.0 I have an application where I want to show the following Json information in a ListView. Investigating I found that I expect a matrix but I receive a Json object but I have not been able...
asked by 29.03.2018 / 02:26
1
answer

Doubt creating the interface to consume apis with Retrofit when it does not have the @PATH [duplicated]

As the title of the question correctly says, I am trying to show a list of countries with the following URL given by the teacher link , for this I created an interface in the following way: public interface ICountryService { String END...
asked by 26.11.2016 / 21:07
1
answer

Obtain multiple objects in PHP - JSON with Retrofit2

I'm trying to make a simple project of a gallery for android and I have a problem when it comes to getting the images from the server and showing them in my application since it only returns the first registered image and what I'm looking for is...
asked by 06.10.2018 / 07:17
1
answer

Send plain text with retrofit

{ Cliente_ID: 1, Nombre_Usuario: "dsadsadsa"} The problem is that the api receives plain text, try to use retrofit in the following way:    Interface @POST("Cliente") Call<Client> newClient(@Body Client client);    Model @Ser...
asked by 19.08.2018 / 19:54
2
answers

Error trying to consume pokeapi REST API

I'm trying to consume the api from PokeAPI - JSON apparently works perfect but trying to use retrofit send me msj: OnFailure: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb86735f0: Failure in SSL library, usuall...
asked by 06.08.2018 / 21:05
2
answers

how to show a ProgressBar or a ProgressDialog while I'm doing a query with retrofit

I am working on a app which uses a Api to query a web server through retrofit . In my project I use the pattern MVC , and what I'm looking for is to enter a ProgressBar or a ProgressDialog q show up when I...
asked by 08.05.2018 / 23:33