• [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] Twitter Feed on an App Widget

    Hi guys, this is a Tutorial Request to show how to create an Android widget that shows a Twitter feed when you give it a search term. The first line of the widget shows the search term, the rest of the widget is used to show the latest tweet in the form “username : tweet”.…

  • [TUT] Animate Removing From a Custom Adapter (ListView)

    Hi guys, this is a Tutorial Request to show how to control your own animations from a custom adapter. The question was a bit vague so I’ve taken it and will show you how to animate a view when you are removing an item from a ListView. Of course ListView is backed by an Adapter,…

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

  • [TUT] Keep Screen on/awake – 3 possible ways

    This tutorial will show you how to stop the screen timing out for an android activity so you can continue to show some information without user interaction and without the screen going off. Dont use a WakeLock when you don’t have to, unless you specifically need to force the device away (processor and all). A…

  • [TUT] Backup & Restore SharedPreferences to the cloud

    This tutorial will show you how you can backup and restore your users sharedpreferences into the cloud. This allows for your app to remember it’s settings in between device installs. This is based on the reference from Google here. In this example we have a simple activity that takes user input and displays it on…

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

  • [TUT] HTML in an Email Intent

    Recently I’ve had to write an Android Application that can send some of its data via email. It’s easy to send the data but I wanted to style the email using CSS. After trying every possible scenario here’s my results. You can add < b >, < i > and other small styling tags but…

  • [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] Change alias passwords of your Android Keystore

    I recently gave one of my applications to another developer to work on. They where to upload updates to Google Play and therefore needed the keystore to sign the application. Now me being naive to start with my keystore had an alias that was specific to me and not the app, it also had a…

  • [TUT] Show YouTube Feed for a Users Videos in a ListView ( XML )

    Hi guys, this is a Tutorial Request to show a list of videos that a user has uploaded to their youtube channel using atom XML. YouTube has some great API‘s for using the data from their website and you can retrieve this data in a few formats including XML and JSON. This tutorial will retrieve…

  • [TUT] SplashScreen with Progress Bar

    Recently had a request for a splash screen that can be used to inform the user that you are downloading some resources that are needed for your app to load. When your app first starts you might want to download a database from the internet, unzip some compressed files in your assets directory or do…

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