-
·
[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] 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] 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…
-
·
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…