Skip to content Skip to sidebar Skip to footer
Showing posts with the label Retrofit2

Retrofit - Send Request Body As Array Or Number

I'm using Retrofit 2 and I need to send request body. The problem is somehow the value is conve… Read more Retrofit - Send Request Body As Array Or Number

How To Use Autovalue With Retrofit 2?

I've got AutoValue (and the android-apt plugin) working in a project, and I'm aware of Ryan… Read more How To Use Autovalue With Retrofit 2?

Rxjava 3 + Retrofit2 - Multiple Inserts To Db Problem

I am trying to do the following; sync a cloud DB using Retrofit to a local SqLite DB (Room) on a de… Read more Rxjava 3 + Retrofit2 - Multiple Inserts To Db Problem

Issue With Retrofit Response

I am trying to get List of States through Retrofit and trying to add in Searchable Spinner. What I … Read more Issue With Retrofit Response

How To Ignore Some Variables In Models Using For Retrofit

I am using Retrofit to send and receive requests to my server. I Have a model like below and I have… Read more How To Ignore Some Variables In Models Using For Retrofit

Retrofit Android: How To Fetch Json Data Using Id And Display Into Textview

I want to fetch only particular data from json object using id and show it in textview. I am able f… Read more Retrofit Android: How To Fetch Json Data Using Id And Display Into Textview

How To Add Retrywhen() For Limited Time (eg 3 Time Retries Only) Getting Ioexception

I am fetching response from server using 3 web API calls, but in case of getting IOException i have… Read more How To Add Retrywhen() For Limited Time (eg 3 Time Retries Only) Getting Ioexception

Send Image File Via Retrofit From Android To Spring

I am trying to upload Image via Retrofit to S3 via Spring. So, it's basically 2 tasks. Pass Im… Read more Send Image File Via Retrofit From Android To Spring

Response In 202 Status In Retrofit2.0

i want to convert the Response in to JSON and show it to the User .I was able to display 200 resp… Read more Response In 202 Status In Retrofit2.0

Android Local Tests Vs Instrumented Test

I'm trying to check if my API is available within a unit test, to be sure that it responds with… Read more Android Local Tests Vs Instrumented Test

Image Upload Using Retrofit

I am uploading image/file using retrofit here I am posting My API call to upload image baseurl/inde… Read more Image Upload Using Retrofit

Host Interceptor Httpurl.parse Illegalarguementexception In Latest Okhttp

I have to intercept host at run time . As my url is dynamic. below code is working fine in old okht… Read more Host Interceptor Httpurl.parse Illegalarguementexception In Latest Okhttp

Handle Json Response With Multiple Type Of The Same Name

The JSON response is : { 'success': false, 'errorMessages': [ '… Read more Handle Json Response With Multiple Type Of The Same Name

Put Request For Json With Json Array Inside

I'm trying to update a PUT request which has a JSONArray inside it and I'm constantly getti… Read more Put Request For Json With Json Array Inside

Retrofit 2, Same Name Different Data Type Json Parsing

I am trying to parse a JSON response from a server, If there are changes to in the query sent in po… Read more Retrofit 2, Same Name Different Data Type Json Parsing

How To Handle Null Param Values In Retrofit

We're moving from Apache's http client to Retrofit and we've found some edge cases wher… Read more How To Handle Null Param Values In Retrofit

Json With Dynamic Keys While Using Retrofit In Android

I'm new in using Retrofit with Android. I'm stuck at a point where I make a request to the … Read more Json With Dynamic Keys While Using Retrofit In Android

Retrofit 2 @path Vs @query

I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed t… Read more Retrofit 2 @path Vs @query

Image Upload Using Retrofit2 Put Method

I am new to retrofit2. I want upload image through api service as a file. I have tried with postman… Read more Image Upload Using Retrofit2 Put Method

How To Handle Retrofit Socket Timeout For Uploading Files In Android Kotlin?

var client = OkHttpClient() val builder = OkHttpClient.Builder() val gson =… Read more How To Handle Retrofit Socket Timeout For Uploading Files In Android Kotlin?