365体育足球滚球比分

Questions tagged [retrofit]

Retrofit is a type-safe REST client for Android and Java by Square, Inc.

Filter by
Sorted by
Tagged with
-1
votes
1answer
13 views

why am I getting Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $ [duplicate]

I've this call @Headers("Content-Type: application/json") @GET("/allMovies/allMovies.txt") Call<List<Movies>> getAllMovies(); and this json { movies: [ { id: "1000", name: "Suicide ...
0
votes
1answer
19 views

I will post the data with formurlencode retrofit but it fails

I have an API from a vendor I want to post data to the API, when I try to use a retrofit with the FormUrlEncode content type it can't post and the error "JSON parse error - No JSON object could be ...
0
votes
1answer
15 views

Error using Retrofit Builder in Android app: java.lang.NoSuchMethodError: No static method metafactory

I am trying to get current weather from an API, and for some reason, when I am trying to create a Retrofit object, it returns me an error: Process: com.api.weather_api_training, PID: 8417 ...
0
votes
0answers
21 views

Parse error body with retrofit and rxjava

I have this code in my presenter override fun login(phone: String, password: String) { view?.showLoading() subscriptions.add( ApiManager.login(phone, password) ...
-1
votes
0answers
16 views

Understand singleton with retrofit

I read about singleton , and why should we create this, and in the same tutorial the guy created the "singleton" like this: public class ApiService { private static Retrofit.Builder ...
0
votes
0answers
23 views

Set String of ArrayList in Recyler view

I want to set response from API in RecylerView in textview. But I'm not able to set below values This is my response from API { "message": "slot_time", "success": "200", "result": [ { ...
0
votes
0answers
16 views

Android Emulator Sending local request to Azure Api results in 400 error

Running into an issue where I can't send a request from my Android Emulator to my locally running Azure API. I keep getting a 400 error(Bad Request). Below is the sample request I'm sending. I can ...
0
votes
1answer
21 views

Android Retrofit @Header and @Field use together?

Android Retrofit @Header and @Field use together possible? @Header is working fine but it gives id as null. I tried id as integer but same. @FormUrlEncoded @POST("api/confirm-user-request") Call<...
2
votes
0answers
29 views

Moshi and Retrofit cannot parse simple JSON

I am trying to parse this JSON: { "random number1": {AT= {av=-54.697, ct=320206.0, mn=-92.47, mx=0.495}, First_UTC=2020-05-17T14:54:38Z }, "random number2": {AT= {av=-54....
0
votes
1answer
24 views

How to combine two kotlin data objects with shared variable into one object?

I'm making a little application which tracks cryptocurrency values at the Bittrex exchange. For this I'm using Bittrex' public api (http://bittrex.github.io/api/v3) Unfortunately the api doesn't ...
0
votes
0answers
14 views

Post request returns null Android [closed]

I used Python for backend and Java (Retrofit) for frontend. Postman worked to post Json. Java doesn't give an error. But it doesn't work. Register.py def post(self): json_data = request.get_json(...
0
votes
1answer
40 views

RetroFit Android Bad POST request

I have POST API, i'm using retroFit in my android source code, this is API parameter in POSTMan this is header: enter image description here This is Body: enter image description here Thisis my ...
1
vote
1answer
31 views

After Retrofit Call User Interface get Hangs in andriod

After i Submit The Request i recieve the data using Retrofit from the Json Response.But user interface get Hangs after i rotate my app the data which i request is Null.Again i have to give request....
0
votes
1answer
31 views

Retrofit returns null on a non-nullable String (Kotlin)

I was developing an app in android when I encountered this problem that I don't really know if it's a known bug or if I should file a bug report. Here's the code: import retrofit2.Retrofit import ...
0
votes
1answer
28 views

How to pass Variables into GET-Parameters in Retrofit

I am new in java and Android. And I am trying to pass some Variable(s) into a Retrofit GET-Call. But nothing works for me, so pleas want you take a look at my code? What do I have to change to send ...

15 30 50 per page
1
2 3 4 5
453