Articles tagged in: Android



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

Glide — Thumbnails

In the last few tutorials, we've looked at ways to optimize the user experience when loading and displaying images. Caching images already takes a big step to a smooth user experience. However, if the image is very large, the processing can take a while until it is displayed. In this …

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

Glide — Request Priorities

Last week, we've looked at a critical piece of image loading: caching! If you missed it, give it another look, it's worth it. This week, we'll go through another important feature of Glide: ordering image requests by prioritization. Notice — August 31st 2017 Glide has released a 4.0.0 version. …

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

Explore the Library

Find interesting tutorials and solutions for your problems.