Articles tagged in: Android



Retrofit 2 — Pagination Using Query Parameter

Requesting data from API endpoints that might respond with large datasets is obviously bad practice. Breaking down massive information packets into smaller chunks is the idea behind pagination. There’s no de facto standard on how to implement pagination on server-side and therefore, clients have to adapt to the solution …

Continue Reading

Glide — Advanced ListViews With Images

In the previous tutorial on ListViews with images we've only looked at examples where the entire adapter item is an ImageView. The approach still applies if one or more ImageViews are only a (small) part of the adapter item. Your getView() code will look a little different, but the loading …

Continue Reading

Retrofit — How to Refresh an Access Token

When working with OAuth 2 APIs, you have to manage access tokens and sometimes also refresh tokens. Generally, the access token is what you’ll use to authenticate your requests. However, the access tokens are short lived and the lifetime differs per API provider. Due to security reasons, the access …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.