Category: android
-
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)
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…
-
Using Git Flow for Android Development
Developing in a small team is pretty manageable as you generally see the code that is changing and can easily monitor these changes. Often teams don’t take full advantage of Git’s capabilities.
-
Android Data Binding – Part 2
In Part 1 I gave an introduction into the Android Data Binding Library. I suggest reading that post first before reading further. In this post I am going to discuss the following : Binding Adapters Binding Events Two Way Binding Binding Adapters Creating an adapter and using Android Data Binding for each item is quite simple.…
-
Getting Started: The Android Data Binding Library Part 1
Anyone who has dabbled a bit in Android Development will know that Android is lacking a key component of MVVM: The ability to bind data without a couple of lines of code. For instance, setting a TextView to some value retrieved from a server is pretty complex, considering the simplicity of the task: TextView textView =…
-
Four Apps I Can’t Live Without
I’m always really curious to know what apps people use on a daily basis, and what about those apps makes them so awesome? I have a couple of apps that have just slotted so easily into my everyday life, that I don’t even realise I am using them. Here they are: PushBullet https://www.pushbullet.com/ This app…
-
South African Lotto Results & Checker {ANDROID APP} – DEPRECATED
UPDATE : 11 September 2015 : Unfortunately I had to discontinue this service as the official Lottery Provider changed, and the results are not published in the same manner. Sorry! After searching the Google Play store for a Lotto app, I realised they were all pretty revolting, so I decided to create my own one…
-
My very first published Android app!
So I finally got round to releasing an app of my own on the Google play store, it’s nothing amazing but might come in handy to a few developers out there. It’s an app that generates a valid South African ID number, which will pass the validation checks that some websites need. Inspired by Evans…
-
Simple Printing in Android to a Network Printer
So for a few days I have been researching how to send a document to a network printer without using any third party libraries in android. This sounds like a simple task but by default Android doesn’t offer this service, sure there are loads of apps that can do it but this took me a…