-

·
Make a monorepo for your Android projects
This post describes how you can share code between your side projects without code duplication, remote hosting or versioning.
-

·
Speed up your build: Non-transitive R files
Non-transitive R files became available to all modules in AGP 4.2. Non-transitive R files allow your builds to be incrementally faster and your AAB/APK’s smaller. This post will explain how to implement and build your app with non-transitive R files. Non-transitive what? In mathematics, non-transitivity is a property of binary relations that are not transitive relations.…
-
·
[TUT] Google Cloud IoT Core – MQTT on Android
I just started playing with Google Cloud IoT Core with AndroidThings, and the communication is done via MQTT. However I couldn’t find a decent, simple example of how to do it. Not for long! This blog explains how to setup communication between an Android app and Cloud IoT Core. You will need your credentials so…
-
·
Android Architecture Components meets AndroidThings
Android Architecture Components are a new set of opinionated guidelines written up by Google on how to structure your code when writing an Android application. From the official documentation: The most important thing you should focus on is the separation of concerns in your app. It is a common mistake to write all your code…
-
·
[TUT] Testing Android Things – Unit & Vendor tests
This tutorial will show you how you can architect your Android Things applications to make testing much easier. This involves two types of testing: unit and vendor testing. Google has just announced the amazing Android Things. This gives the Internet of Things (IoT) a real jump start with the availability of the Android ecosystem and…
-
·
[TUT] Locally release an Android Library for JCenter or Maven Central inclusion
This post will put you on the right path to releasing and Android library to bintray ( JCenter ) or maven.org ( MavenCentral ). It will show you how you can create a maven compatible release of your Android library project. You can then use these files to release to whatever repository you want (in…
-
·
[TUT] Simple InApp Billing / Payment V3
Google have released a new version of their In App Billing (Version 3). So I’ve followed suit and updated my tutorial! Eclipse Project Source Code Download GitHub Source Code Repo Link There are a fair few changes, too many to fit into one tutorial but the overview is: – All purchases are now managed purchases…
-
·
[TUT] Create your own CheckStyle check
Android code is just like any Java system, you need to write tests and have automated code review checks. CheckStyle is a way of double checking your Java code. Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to…
-
·
[TUT] Networking off the UI thread – SOLID Architecture
Hi guys, this is a Tutorial Request to show how to architect an app in a S.O.L.I.D design to complete networking tasks. Now I am not an expert at this, but I believe the example does show the signs of a SOLID design. I can also see places where I could have used more interfaces…
-
·
[TUT] ASyncTaskLoader using Support Library
I’ve just started learning about Loaders, they’re a way to handle doing tasks off the UI thread. The benefits include having a listener that will inform your fragment/activity when the data your monitoring is changed. They will also account for orientation changes when loading. A brief introduction is written here and it got me up…
-
·
[TUT] Generic One Option Dialog Fragment (with data)
In this tutorial I’ll show you how to create a dialog fragment that can be used for general purpose dialogs where you want to show the user a message and just have one option for them to acknowledge the message. The unique thing about this tutoral is you can add an object to your dialog…
-
·
[TUT] Switching Android build constants using Ant
When you want to create two different builds/configurations for your development environment and your live build, it can be really annoying having to change all those constants; or you don’t have them as constants and you’ve got some horrible if else logic in your code. Here I’ll show you how to use Ant to swap…
-
·
[TUT] Set a notification for a user chosen time
Here we will set a notification to be popped up at a specific time in the future that the user has chosen. We will follow on from the Basic Date Picker Tutorial to use this Date Picker to allow the user to set a reminder. It is a quite interesting scenario and this is just…