gpt4 book ai didi

android - 如何使用应用程序在亚马逊市场上撰写评论?

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:06:54 25 4
gpt4 key购买 nike

我想通过我的应用程序在亚马逊市场上写评论。但是,我可以使用此代码为 Android 市场执行此操作。

Uri marketUri = Uri.parse("market://details?id=" + getPackageName());
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(marketUri);
startActivity(intent);

比起在亚马逊市场做同样的事情我应该怎么做?

最佳答案

对于亚马逊应用商店,请查看此链接 https://developer.amazon.com/help/faq.html它有很多有用的信息。您问题的答案在“营销”下

Intent goToAppstore = new Intent(Intent.ACTION_VIEW,
Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=com.jakar.myapp"));
goToAppstore.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(goToAppstore);

这将为 myapp 打开 Amazon App store。 (当然用你的包名切换“com.jakar.myapp”)。

要使用相同的 APK 文件同时支持 Android 和亚马逊市场,请参见:How to support Amazon and Android Market (Google Play) links in same APK

关于android - 如何使用应用程序在亚马逊市场上撰写评论?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7658984/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com