Teo Choong Ping
Teo Choong Ping

Reputation: 12808

How to redirect user to a particular app in Market?

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

Answers (2)

Konstantin Burov
Konstantin Burov

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

Stefan H Singer
Stefan H Singer

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

Related Questions