Skip to content Skip to sidebar Skip to footer

Android - Check If App Is Already Installed

I wanted to have a web page with a link pointing to the apk app in a market (this is possible), but if the app already exists on the device did not want him to redirect the market

Solution 1:

There's no way to do that on a website. You can create a link to the application on Market, and if the user is on an Android device, he or she will be redirected to the Market application - from here it's possible to see if it's installed or not.

Should you want to do it in Java code, you can use @Pedro's advice with a simple check.

Solution 2:

You can use PackageManager.getInstalledApplications and check if the app you're looking for is listed.

Post a Comment for "Android - Check If App Is Already Installed"