gpt4 book ai didi

blackberry-10 - Android 运行时中的 Appworld 市场链接

转载 作者:行者123 更新时间:2023-12-04 05:25:02 25 4
gpt4 key购买 nike

我在 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 没有捕获它。处理此链接的正确方法是什么?

最佳答案

正常的 market://链接实际上应该有效。

关于blackberry-10 - Android 运行时中的 Appworld 市场链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13291002/

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