Questions tagged as 'retrofit'

1
answer

How to replace ProgressDialog (obsolete) with ProgressBar in retrofit?

Since ProgressDialog is "deprecated" I am trying to replace it with a ProgressBar, I have an activity with a list and I am trying to show a ProgressBar before the list is displayed after an http query with retrofit. I have used "progre...
asked by 04.05.2018 / 10:18
1
answer

I get the message: "the application may be doing too much work on its main thread", using Retrofit with Android [closed]

Good I have this method to get the response: public void cargarFilas(String filtro){ OkHttpClient okHttpClient = new OkHttpClient.Builder() .addNetworkInterceptor(new StethoInterceptor()) .build(); Retrofit re...
asked by 05.05.2017 / 20:44
1
answer

I can not connect to my service using retrofit2 using API 19

The problem I have is that I was testing with different versions of the SDK and with a samsung SM-A500M version of the API 19 it jumps in front of the onFailure and the error that I get is the following:    SSL handshake...
asked by 22.02.2018 / 20:15
1
answer

How to share image on social networks, android?

I'm trying to share an image on social networks, which I get from a URL I tried several ways and I have not succeeded, I use retrofit2 to show the content of the application. Thank you very much in advance Here I get the url of the image...
asked by 07.08.2017 / 02:28
1
answer

How to read fixes within JSON objects with retrofit 2 in android? error: "java.net.ConnectException: Failed to connect to"

I am trying to consume a api of a localhost , once created generate the following JSON {"Users":[ {"id":1, "username":"pepe123", "fname":"pepe", "lname":"jose", "dispositivo"...
asked by 31.10.2018 / 20:53
1
answer

Is it possible to deactivate the gps to reduce the battery consumption in an app?

I am using the GPS in my application to define the exact location of Smartphone , ( latitud and longitud ), coupled with this I receive the coordinates in a Geocoder to get the name of the street according to the...
asked by 10.07.2018 / 22:22
1
answer

When making requests to the server

I have a problem, which I consider easy, but due to my little experience in Android I can not solve. You see, I'm developing an app that gets the data from a server, that is, I make requests to get the data to be displayed Ejm: list of produc...
asked by 23.06.2017 / 17:48
1
answer

SEND AND RECEIVE A LETTER OR NUMBER THROUGH ANDROID RETROFIT

I want to send and receive data by Retrofit , but only a specific data, just a letter or a number to perform an action from that .. private void EnviarDatos(String dato) { ConnectivityManager conectivity=(ConnectivityManager)...
asked by 05.06.2018 / 16:38
1
answer

How to add a converter (GSON) to retrofit in netbeans for javaFX project?

As you already read above, I am trying to configure a converter to retrofit , all this in netbeans, for android it will be used and there it will be added with Gradle and in netbeans with maven but at the time of doing the class w...
asked by 21.04.2018 / 20:49
1
answer

Wait for retrofit to answer a call?

I have to do a Retrofit Call inside an adapter to compare information from two arraylist: public void checkguardadas(int id_usuario) { RetrofitService retrofitService = RetrofitService.getInstance(); PabloAPI api = retrofitService.get...
asked by 30.11.2017 / 11:31