Questions tagged as 'retrofit'

0
answers

How to parse Json with retrofit

Webservice response { "estado": 400, "mensaje": "Usuario o Password invalidos" } I am starting to make use of retrofit, there are some parts that I do not understand, it is necessary to say that it is the first time I use it. Cre...
asked by 13.08.2018 / 00:26
0
answers

Access Json content with retrofit

How can I access the content of a JSON if retrofit 2 is used, the pratron observable and has the following structure: Json: status: bool content[ edTitle navUrl family type section edSumm...
asked by 24.07.2018 / 16:54
1
answer

How to implement WebSockets in android Studio?

I am trying another method of communication Cliente-Servidor , I have researched about it and there is WebSocket that would be a bidirectional communication channel (between cliente-servidor ), I was using retrofit , I w...
asked by 17.07.2018 / 17:02
0
answers

Because retrofit shows me null

W/2.0 getFeed > response.raw() =>: Response{protocol=http/1.1, code=200, message=OK, url=http://web.com/api/api/entry/providers/2} W/2.0 getFeed > body =>: [] Json correctly shows me the information in the url that has been plac...
asked by 10.07.2018 / 02:55
0
answers

Help with Retrofit, PUT and DELETE methods

I am obliged to put all the code given that I can not find a solution to this, and I have already seen several questions with the same subject, but not even that way. PUT and DELETE do not walk me. I have these classes on Android -RetrofiC...
asked by 10.07.2018 / 23:15
0
answers

fill list within retrofit Onresponse

The project I'm doing is practically an application on android that I consume a ApiRestFull practically everything works fine I bring the elements set them and the response.body if the elements respond. Error: When declaring a...
asked by 08.06.2018 / 02:59
0
answers

Pass of "&" in Retrofit Url dinamica

I need to pass a dynamic url to get the data from a server, for this I am using retrofit but at the moment of passing the url dimanicamente by means of the @Query of Retrofit I am changing the & for its code% 3F the problem is that I do not...
asked by 29.03.2018 / 20:11
1
answer

Retrofit2 validate user

I am creating an app that consumes data from a server with Retrofit2. Get i Post queries I have created them and they work perfectly for me. @GET("baseclientes.php") Call<ArrayList<NClientes>> NClientes(); The problem co...
asked by 24.03.2018 / 13:37
1
answer

Android application stops when using camera (onDestroy)

I have an android application which at a certain point the user requested a photographic evidence, before adding the services of google play services and firebase worked without problems . The manifest is already configured in case it goe...
asked by 25.10.2017 / 00:14
0
answers

Put image with retrofit or okhttp3? I do not know how to do it

I'm trying to make a put with retrofit and also directly with okhttp3 and I could not do it with any The codes I have used are the following. Okhttp3: public void uploadFile() { getActivity().runOnUiThread(new Runnable() {...
asked by 20.09.2017 / 17:54