-
·
[TUT] Android Gradle App with Robolectric JUnit tests
This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs Robolectric JUnit tests on Android classes. This follows on from my tutorial about JVM JUnit tests, you can have one type of testing without the other. For instance you could bundle all your JVM tests inside…
-
·
[TUT] Android Gradle App with JVM JUnit tests
This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs JUnit tests on java classes. If your here and reading this, I assume you already know Android code runs on Dalvik and the SDK’s used when developing on a computer are stubs. (Hence the Stub! exception…
-
·
[TUT] Setting up Android Studio & Gradle [windows 7]
This is a simple walk through of setting up the new Android Studio IDE and Gradle. Gradle is the new build system for all Android projects. Prerequisites: you have a JDK installed. JAVA_HOME is set. (you can test this by typing java -version in a console) warning: This post is very image heavy, so get…
-
·
[TUT] DayDreams are as easy as counting sheep
DayDreaming is simple, if you have written an application with an Activity i.e everybody! You should be able to implement a simple daydream with little extra effort. We are going to run through creating one and it will look something like this at the end: (much smoother on a device, this is a GIF representation)…
-
·
[TUT] Validate EditText User Input with Shake Feedback
I was recently watching the Google App Clinic and noticed one of the apps Zoum Tasks had this really cool feature where when the user enters an email address into an EditText, if it was invalid then the EditText would shake! I thought this was really cool and wondered how it was implemented so I…
-
·
[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…
-
·
Creating 9 Patch Images – Android Asset Studio
If your here you already know what a 9 patch image is. 9 Patch images are stretchable, repeatable images reduced to their smallest size. You define what regions you want to stretch and where your content is. For background reading take a look at: Simple Guide to 9 Patches The great thing about Android Asset…
-
·
Register for YouTube API use
This post walks you through registering for the YouTube API. This is necessary if you want to upload / download videos from YouTube using OAuth. Another way to think of registering is that, it creates a server side representation of your android app that you are going to create, so that Google can recognise your…
-
·
[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] Using Annotations for Android XML onClick visibility
In this tutorial I’ll show you how to create a basic Annotation. The idea being you can use this to highlight the entry points into your code. (These entry points coming from XML onClick declarations in your layout files). I did this originally for myself, I was finding it hard when looking through my Activity…