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 Switch your Google Checkout Account in the Android Market Application
With Google’s last update of the Market application on the Android devices, it became a lot easier to now switch your Google Checkout account associated with all your application purchases. Just fire up the Market application on your device and
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
Android Version 2.2.2 Prevents Applications with Copy Protection Turned on from Displaying in the Market
Today I got the Over the Air update of my Nexus One phone to version 2.2.2. To my surprise I could not see some of my applications that were published in the Android Market. Neither could I see a big