-
·
Five reasons why Android developers should start developing for the internet of things
The “internet of things” (IoT) is simple: everyday objects that have internet connectivity and sensors that can gather, transmit and receive information. But why does this ubiquitous functionality affect you as an Android developer?  Just as smartphones are being built with more and more sensors – for everything like movement, sound, temperature and touch…
-
·
Clean Code: Java Class Fields
Keeping your code clean is no easy task. Clean code allows your project to pass the test of time. It can be broken down into making your code simple to read, write, and understand. This post will explain how you can clean up your class fields to move towards a cleaner project. Code maintenance is…
-
·
CleanCoders – Mobile App Case Study Review
Learning is hard and comes in many forms. I have recently finished watching “Mobile Development with Swift” an online ~10 hour video series by Robert C Martin of the [Clean Coders](https://cleancoders.com/) website. It aims to teach you about mobile development, test driven development and clean code. What did I learn? Was it worth it? And…
-
·
The only way to implement Model View Presenter
The only way to do Model View Presenter (MVP) and you probably didn’t even know it existed! _Everyone_ on the internet is talking about MVP and everyone likes to share ‘_the best way_’, little do they know the best way is written in this blog. I will talk about how you can architect MVP to…
-
·
[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] Creating comments with timestamps like YouTube
Creating comments with timestamps like YouTube (java.util.Date or JodaTime) This tutorial shows how you can create timestamped messages like the YouTube comments section. What this means is we will convert the timestamp (date) that each message has been saved at into a human readable and rounded format. For instance if today is 2016/02/14 17:00 and…
-
·
[TUT] Send app data to a web spreadsheet (Google Sheets)
Have you ever had a spreadsheet and thought it’d be really good if I could get data into this from a mobile app. What a great idea, next comes the thought that this is actually much more effort than it seems. Well not any more, this tutorial explains how you can take input in an…
-
·
Use the latest version of any library with Android Studio & Gradle
Isn’t it annoying whenever you want to add a new dependency to your project you have to know the exact version to add, not any more! This ‘hack’ makes use of the Gradle + syntax that allows you to not specify a version of the application. However using + syntax in your code is dangerous…
-
·
Enchant your users, without boring them with repetition – Animations
I hope you know the Android Design Principles, if not shh quick read them here. There is also a great talk on the principles from Google IO, so if you prefer video click this. Here I want to talk about animations in your application. Animations are great, they can create a delightful, enchanting experience. Animations…
-
·
[TUT] Migrating to AdMob in Google Play Services from AdMob SDK jar
Google have announced AdMob will now be available from with the Google Play Services library. The issue being they are stopping delivering ads to the AdMob sdk jar from August 2014. I describe here some simple steps to help you migrate. This post assumes you originally were using AdMob sdk version 4 or lower. With…
-
·
[TUT] Android Gradle App with Espresso Instrumentation tests
This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs Espresso Instrumentation tests on Android classes. This follows on from my tutorials about Robolectric JUnit tests & JVM JUnit tests, you can have Espresso tests without Robolectric or JVM tests, but the idea is they all…