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?
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.
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 :))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With