Tag: androiddev

  • [TUT] Front Camera Face Detection – explained

    This tutorial explains everything needed to detect faces with the front facing camera on Android. It also wraps this all up into one class, so that you can do face detection in your activity with two lines of code. At first I had no intention of writing a tutorial as I thought face detection would…

  • [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] How to run Robolectric JUnit tests in Android Studio

    After my blog post on describing an Android Gradle App with Robolectric JUnit tests. I follow up here with how to run these tests within your AndroidStudio. The outcome being faster feedback from your tests and great IDE integration. Ok here we’ll explain how to create a run configuration that will run all the tests…

  • [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…

  • Creating GIF images from your Android device

    Ever wanted to show an example of your Android app on a website but it only supports image upload. Or you want to tweet a gif of your latest app feature. Now you can! If you have an Android 4.4.2 (KitKat) device you can use Android Studio (ASide) to record a video of your application.…

  • [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…