How to open the Amazon AppStore directly from my Android application?
<p>I have seen answers regarding Amazon Appstore from iPhone but not from Android. I'm trying to make a button that will open the Amazon Appstore (for android) on my app's page. </p>

<p>Here is how it's done for Google Play:</p>

<pre><code>final String appPackageName = context.getPackageName();

try {
    activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)); 
} catch (android.content.ActivityNotFoundException e) {
    activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + appPackageName));
}
</code></pre>

<p>How should I replace the Strings so that it works "the same" for Amaozn AppStore?</p>