我从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“相同”工作?
亚马逊应用商店的URI为
amzn://apps/android?
定向到特定应用程序看起来像
amzn://apps/android?p=com.amazon.mp3
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句