【问题标题】:Appworld market link in Android runtimeAndroid 运行时中的 Appworld 市场链接
【发布时间】:2013-07-25 07:08:57
【问题描述】:

我在 appworld 上有一个应用程序,我想在我的应用程序中添加一个指向它的链接,以便人们可以更轻松地对其进行评分。通常在android市场上我会做这样的事情:

Uri uri = Uri.parse("market://details?id=com.example.test");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

或者在亚马逊上我会这样做:

Uri uri = Uri.parse("http://www.amazon.com/gp/mas/dl/android?p=com.example.test");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

但是当我尝试以下方法时它不起作用:

Uri uri = Uri.parse("appworld://content=000000");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

它会弹出一个浏览器,然后我收到一条关于无法执行此操作的消息。我还尝试启动到 appworld 网站页面,但 appworld 没有抓住它。处理此链接的正确方法是什么?

【问题讨论】:

    标签: blackberry-10 appworld blackberry-android


    【解决方案1】:

    正常的 market:// 链接应该可以正常工作。

    【讨论】:

    • 是的,如果应用程序存在,BB10 会尝试映射到 Blackberry World(以前称为 App World)。否则它将映射到 google play。
    【解决方案2】:

    正常的market:// URI 对我不起作用。 BlackBerry World 应用程序将始终显示错误:

    There was a problem loading this Page due to a network error.
    

    修复方法是检测我的应用何时在 BlackBerry 设备上运行,然后使用不同的 URI:

    if (java.lang.System.getProperty("os.name").equals("qnx")){
        marketUri = "appworld://content/1234567"
    } else {
        //normal Google Play URI
    }
    

    您可以通过点击应用旁边的“编辑”链接从 BlackBerry World Vendor Portal 获取您的内容 ID。 ID 显示在第一个字段中。

    【讨论】:

    • 嗯...奇怪,我会仔细检查一下,看看我的是否仍在使用市场链接。
    • 我尝试了“appworld://content/1234567”,但它在 PlayBook 上不起作用。正常的市场链接有效,但有些冒名顶替者向 BlackBerry App World 提交了我的应用程序的非法副本。出于某种原因,市场链接总是指向我想避免的非法提交的列表……还有其他出路吗?
    • 嗯,这在盗版和链接方面都是不对的。给我发电子邮件到 doturner@blackberry.com,我会调查的。
    猜你喜欢
    • 2011-09-30
    • 1970-01-01
    • 1970-01-01
    • 2013-02-01
    • 1970-01-01
    • 2012-02-03
    • 2011-01-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多