Reputation: 12808
My Android app is trying to urge a user to upgrade a particular app from the Market. I can detect the old version of the app but how do I redirect user to the app page in Market directly with a button click?
Upvotes: 7
Views: 5540
Reputation: 69238
You need to raise a specially formed intent, like this:
Uri marketUri = Uri.parse("market://details?id=" + packageName);
Intent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri);
startActivity(marketIntent);
Where packageName
would be package name of your target app.
Upvotes: 20
Reputation: 5504
I think you can link to it directly with a link like so: http://market.android.com/search?q=pname:com.voxmobili.phonebook (but with a working app link that is :))
Upvotes: 4