【问题标题】:how to write review on Amazon market using app?如何使用应用程序在亚马逊市场上撰写评论?
【发布时间】:2011-12-01 07:40:26
【问题描述】:

我想通过我的申请写一篇关于亚马逊市场的评论。 但是我可以使用此代码为 android 市场执行此操作。

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

对于亚马逊市场做同样的事情,我应该怎么做?

【问题讨论】:

    标签: android


    【解决方案1】:

    对于亚马逊应用商店,请查看此链接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。 (当然用你的包名切换“com.jakar.myapp”)。

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

    【讨论】:

    【解决方案2】:

    就用这段代码,没什么特别的:

    Uri marketUri = Uri.parse("<link-to-the-amazon-market>");
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setData(marketUri);
    startActivity(intent);
    

    此意图适用于它识别的任何类型的Uri,如果亚马逊市场没有特殊的Uri 表单,只需将用户重定向到市场的网页。希望这会有所帮助。

    【讨论】:

    • 但我没有“链接到亚马逊市场”,上传后可以使用它,所以我使用了 getPackgeName for android。但我对亚马逊的初始链接感到困惑。谁能帮帮我?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多