【发布时间】:2016-06-19 12:05:11
【问题描述】:
我从 iPhone 上看到了有关 Amazon Appstore 的答案,但在 Android 上没有。我正在尝试制作一个按钮,可以在我的应用页面上打开 Amazon Appstore(适用于 android)。
这是在 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));
}
我应该如何替换字符串以便它在 Amaozn AppStore 中“同样”工作?
【问题讨论】:
-
你只想要亚马逊应用的包名?
-
非常感谢!您发布的链接很有帮助
标签: android amazon updates amazon-appstore