java – Linking back to amazon app store for ratings-ThrowExceptions

Exception or error:

I am currently using the following code within my android app on The Google Play Store to request a review and a rating of my app.

Intent goToMarket = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.yapp.blah"));

How can I link back to The Amazon App Store or Amazon Market to achieve the same thing?

How to solve:

You can do the following things:

  1. Check if the device based on its Manufacturer.
    For ex:

  2. For writing reviews and opening the Amazon App Store use the following intent


    where p=Link to the detail page for a specific package name.

Ref: Amazon developer link.


Just use following code. It’s at first trying to open market application by URI, but if it is not found open web link.

public static final String MARKET_AMAZON_URL = "amzn://apps/android?p=";
public static final String WEB_AMAZON_URL = "";

    private static void openOnAmazonMarket(Context context, String packageName) {

    try {
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(MARKET_AMAZON_URL + packageName));
    } catch (android.content.ActivityNotFoundException anfe) {
        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(WEB_AMAZON_URL + packageName));


For Google Play and Samsung Galaxy Apps links are following:

public static final String MARKET_GOOGLE_URL = "market://details?id=";
public static final String WEB_GOOGLE_URL = "";

public static final String MARKET_SAMSUNG_URL = "samsungapps://ProductDetail/";
public static final String WEB_SAMSUNG_URL = "";


This is the preferred method and will directly open up the Amazon Appstore for Android:




There are two methods to do it:

Option 1: Link to the Amazon Retail Website

This type of link will be picked up by the Amazon Appstore for Android as well as any installed browsers on the device. The base URL is as follows:

Option 2: Link directly to the Amazon Appstore for Android

This specially formatted link is the preferred method and will directly open up the Amazon Appstore for Android. The base URL is as follows:


Leave a Reply

Your email address will not be published. Required fields are marked *