[Github Library] Android Material Info Tutorial

[Github Library] Android Material Info Tutorial

I made a Github library to create an on-boarding activity for your Android application. It is inspired by the tutorial in the Google Sheets app. The library offers the ability to set a different background colour per slide. It transitions the colours into one another by calculating the colour between the one it’s transitioning to and where it is …

Read More Read More

Google Cloud Test Lab – and why you should care about it.

Google Cloud Test Lab – and why you should care about it.

If you have worked on any really popular app you will know the pains involved in development: thousands of different devices, different configurations, or different versions of Android. Now we may think that we have the most of these devices covered but the inevitable will happen. You are bound to have some guy with some …

Read More Read More

Retrofit 2 – Mocking HTTP Responses

Retrofit 2 – Mocking HTTP Responses

In the previous post, I discussed implementing a custom Retrofit Client to mock out different HTTP response codes. This mechanism works well for Retrofit versions 1.9 and below but has its drawbacks. After trying out Retrofit 2, I have adjusted the previous sample and managed to achieve the same results (with some improvements 😀).

Mocking API Responses using a Retrofit Client in Android (Retrofit 1.9)

Mocking API Responses using a Retrofit Client in Android (Retrofit 1.9)

Writing test cases in Android can be quite a daunting task, especially the handling of different server responses. Testing error responses can be quite problematic and your app might not cover all the different scenarios. If you are using Retrofit 1.9 and below to do your network calls, testing error responses can be quite simple. There …

Read More Read More