Top "Retrofit" questions

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

Refreshing OAuth token using Retrofit without modifying all calls

We are using Retrofit in our Android app, to communicate with an OAuth2 secured server. Everything works great, we use …

android oauth-2.0 retrofit
Best practice to implement Retrofit callback to recreated activity?

I'm switching to Retrofit and trying to understand proper architecture for using it with async callbacks. For example I have …

android web-services rest retrofit
Square retrofit server mock for testing

What's the best way to mock a server for testing when using the square retrofit framework. Potential ways: Create a …

android testing mocking retrofit mockwebserver
How can I handle empty response body with Retrofit 2?

Recently I started using Retrofit 2 and I faced an issue with parsing empty response body. I have a server which …

android retrofit retrofit2 square
Retrofit Post Parameter

I am implementing login feature and for that using Post request but i am getting error saying "retrofit.RetrofitError: com.…

java android rest retrofit retrofit2
Retrofit - @Body parameters cannot be used with form or multi-part encoding

I m trying to make a request in which I want to include a Header , a form-urlencoded field and a …

android api retrofit square
No Retrofit annotation found. (parameter #1)

I want get RSS code from a URL with Retrofit and if I enter url staticly in the get annotation …

android android-studio retrofit
Using Retrofit in Android

I have an android app that has 3 activities : A login activity A tasks acivity where all tasks pertaining to a …

java android api retrofit
Retrofit API to retrieve a png image

Hi I am new to Retrofit framework for Android. I could get JSON responses from REST services using it but …

android retrofit
How to handle Dynamic JSON in Retrofit?

I am using the retrofit efficient networking library, but I am unable to handle Dynamic JSON which contains single prefix …

android json gson retrofit