The update-alternatives is used to handle situations where multiple applications that accomplish the same task are installed on the system, but we would like to set a default on which one to be used….. I moved the JDK from another
How to connect your Android phone to Ubuntu to do development, testing, installations or tethering – Updated
All the way back in 2010 I wrote a post how to connect your Android device to your Ubuntu computer in order to develop on it. There have been a few changes since then, so here is the updated version
In-app Billing API v3 throws IllegalStateException
If you have followed Google’s instructions when implementing version 3 of the Android’s in-app billing API by exploring their TrivialDrive sample app, you probably have come upon some numerous IllegalStateExceptions, like these: java.lang.IllegalStateException: Can’t start async operation (consume) because another
How to detect a user pan/touch/drag on Android Map v2
If you are impatient, you can skip directly to the solution. The new implementation of the Android Map (v2) is great in many ways and their support for map fragments is awesome, but they fall a bit short in a
Implementing Android GCM in a different package other than the main application package
There is something you need to be aware of if you are placing your GCM (Google Cloud Messaging, aka push notifications) service (the one extending from GCMBaseIntentService) in a package other than the main application package. The default implementation of
Quick and easy way to remove all single line (//) comments in Eclipse
I had to quickly remove single line comments from an Android project in Eclipse. I could not find any built in feature in Eclipse to do that. So I resorted to a simple regular expression: (//[^\n]*) This simple regex selects
A small bug in the Android In-App Billing demo app causes “Item Not Found”
Important: This is not a bug in the API! It is only a bug in the demo Dungeons application that Google provides. Several months ago (May, 2012) Google released the new version (v2) of the Android In-App Billing API that
How to get Picasa images using the Image Picker on Android devices running any OS version
Using the Image Picker to get a local image from the Gallery is pretty easy and trivial task. But things get a lot more interesting if the user has a Picasa account and he/she happens to select an image from
How to sign an unsigned Android package (.apk file)
If you develop with Eclipse, you most likely use the built in Export Wizard to export and sign your Android applications. There are some cases though, when this method will not do. For example, if you decide to publish your
Eclipse Project is Flagged with an “Android Packaging Problem” Error
Sometimes while developing in Eclipse you will notice that the Android Project will be flagged with the red “x” but none of your source files or resources will have errors. If you look in the “Problems” tab you will notice