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?
source
share