How to open Amazon App Store directly from my Android app?

I saw answers on Amazon Appstore from iPhone, but not on Android. I am trying to make a button that will open the Amazon Appstore (for android) on my application page.

Here's how to do it for Google Play:

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));
}

How to replace strings so that it works "the same" for the AppStore Amaozn?

+4
source share
2 answers

Amazon App Store URI

amzn://apps/android?

The direction to a specific application will look like

amzn://apps/android?p=com.amazon.mp3

Source: Amazon App Link for Android

+6
source

WebViews. , , . webview xml java .

-:

( )

WebView , . JavaScript - . HTML , , , ; -, , - . -, , , - URL-, WebView. :

Uri uri = Uri.parse("http://www.example.com");
 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
 startActivity(intent);

-:

 webview.loadUrl("http://slashdot.org/");

 // OR, you can also load from an HTML string:
 String summary = "<html><body>You scored <b>192</b> points.</body></html>";
 webview.loadData(summary, "text/html", null);

, , .

+1

All Articles