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
Android – Displaying Dialogs From Background Threads
Having threads to do some heavy lifting and long processing in the background is pretty standard stuff. Very often you would want to notify or prompt the user after the background task has finished by displaying a Dialog. The displaying
Android applications that use the MyLocationOverlay class crash on the new Droid X
Update: August 29, 2010 Tested this myself on a friend’s phone and this bug is definitively not fixed yet despite the recent Motorola updates! The burden is on you (the developer) to fix this if you want your applications to
Just Upgraded my Nexus One from Android 2.1 to Android 2.2
The latest Android OS version 2.2 (“Froyo”) was announced at the Google I/O conference on the 11th of May. As you already probably know it adds multiple enhancements like tethering, wifi hotspot functionality, full support for Flash, etc. Since I