Open Play Store directly from your app

Google Play can be opened just by using Intent mechanism and using market:// prefix when writing URI. You need to consider situation when your app runs on device which does not have Play Store installed and then ActivityNotFoundException will be thrown. Then we can handle that by preparing alternative URI that will be opened by theContinue reading “Open Play Store directly from your app”

Generate placeholders inside SQL “IN” clause

Sometimes you need to create really complex SQL query in your android app and the only way to do this is by executing rawQuery() method on SQLiteDatabase object. Of course we have SQLiteQueryBuilder with its API but there is no method which helps us to create query with IN statement from SQL syntax. I realisedContinue reading “Generate placeholders inside SQL “IN” clause”

Migrate from Eclipse to Android Studio without pain

I advise you to read entire post and then start working on migration from Eclipse to Android Studio. You can also try to move along with migration while reading it. I think it’s most efficient way of doing this. In the beginning I need to mention that in this post I use Eclipse Kepler 4.3Continue reading “Migrate from Eclipse to Android Studio without pain”

Parameterized Activity in android

Android activities can be invoked by other applications installed on a device by use of Intents. That’s the way the platform was designed, to use the benefit of fact that other apps are able to do something and we don’t need to implement that functionality. You would probably think: “That’s great!” and yes it isContinue reading “Parameterized Activity in android”