Articles tagged in: Retrofit



Retrofit 2 — Simple Error Handling

Two weeks ago, you’ve seen how to log requests and responses for debugging purposes. Requests might not finish successfully and you have to take care of failure situations. Most of the time, you need to manually apply the correct action like showing an error message as user feedback. If …

Continue Reading

Retrofit 2 — Hawk Authentication on Android

Hawk authentication is sort of the underdog in the class of authentication types. It’s been officially around since November 2012 when Eran Hammer (aka hueniverse) published the first version. Since than, the HTTP authentication scheme has evolved to its current version 6.x. This tutorial guides you through the …

Continue Reading

Retrofit 2 — Log Requests and Responses

Retrofit 1 integrated a log feature for basic request and response debugging. The logging functionality was removed in Retrofit 2, since the required HTTP layer is now completely based on OkHttp. Since many developers asked for logging capabilities in Retrofit 2, the developers of OkHttp added a logging interceptor in …

Continue Reading

Retrofit 2 — How to Upload Files to Server

The previous tutorials guided you through various use cases of Retrofit and showed you opportunities to enhance the app with Retrofit’s built-in functionality. This tutorial will show you how to upload a file to a backend server using the second major release of Retrofit, namely Retrofit 2. {{outline}} {{video} …

Continue Reading

Retrofit — Love Working With APIs on Android

The first Retrofit blog post was published on December 1st back in 2014. Within the following weeks after the initial release, we published 13 additional articles within the series of Retrofit posts. Since then, thousands have visited the articles and could solve various problems easily. We’re truly overwhelmed about …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.