Category: Reference

  • 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] Easier / Quicker Generic Collection Creation

    Sick of repeating your generics declaration?Sick of repeating your generics declaration? [java] List<SomeObject> listOfSomething = new ArrayList<SomeObject>(); Map<SomeKey, SomeObject> mapOfSomething = new HashMap<SomeKey, SomeObject>(); [/java] For a quick and easy way to create a collection of objects you can do the below. Create yourself a util class: [java] package com.blundell.util; import java.util.ArrayList; import java.util.HashMap; public…

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

  • Forget work for a minute

    Someone was asking me the other day what do I do when I’m not writing Android apps. Well here’s the answer: Enjoy my meta blog.

  • Overview of Android In App Billing V2 (FlowChart)

    I warn you this is a long blog post as I am walking you through and explaining the full steps for an Android In App Purchase. I’ve recently had to deliver in app billing for Android, during the development I did some in-depth research of how it works and what the different stages of the…

  • Testing Devices – Emulator Settings for each Android Density Bucket

    Recently I’ve needed to test on a vast range of devices, but we don’t have the physical devices available. I’m always wary of the emulators because they can’t show defects with the software that manufacturers/operators put on top of vanilla android. One thing the emulators are good for is testing the different pixel densities that…

  • List of Android Devices with pixel density buckets

    This is my attempt at collating what device runs at what pixel density. I realise there are millions of devices so this list will start small and hopefully I’ll update it often whenever I come across a new device. [code] Model | Android Version | Density Advent Vega | 2.2 | mdpi Amazon Fire TV…

  • Tyre Pressure Readings in your App – Using Intent Filters

    Have just updated Tyre Pressure Checker to allow other apps to use it’s capabilities. You can now have Tyre Pressure information for UK registered cars within your apps. There are two methods for this you can either ‘hand off’ to Tyre Pressure Checker and that app will ask for a car registration then display the…

  • Google Analytics – Common Problems and Fixes

    I’ve just been experimenting with my first app using Google Analytics. I set up it all nicely to track each activity that is visited, track when certain buttons are pressed and also what orientation the user is currently using my app in. It all looked fine and dandy on the code side. Next I waited…

  • OutOfMemory error – do you use runnables?

    This is how I fixed my OutOfMemoryError, I don’t claim to be 100% correct and forgive me when I try to explain how, what and why (because I’ll probably just do it wrong) but hopefully me giving my description of this issue will lead you to fixing your own defects. Argh my latest application was…

  • Add source code links to Android APIs

    So I’ve just been taking it for granted that I can see the source code for the Android SDK by clicking ‘view source’ on the Android developer site. see below: Today I was using someone else’s machine and was completely confused when I couldn’t see that link. I was wondering, was it because I was…

  • [TUT] Array List of countries for arrays.xml

    Just created these two matching pair array’s of countries and county codes thought I would share them with everyone since I couldn’t find them myself. Could use the full names for a spinner selection and the short hand for database storage / look up / sending to a server. Or anything else! The Countries list,…