本文介绍了Android运行时中的Appworld市场链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have an app on the appworld and I would like to add a link to it in my app so that people can more easily rate it. Normally on the android market I would do something like:

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

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

Or on Amazon I would do:

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);

但是当我尝试以下操作时,它不起作用:

But when I try the following it does not work:

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

它会弹出浏览器,然后我收到一条消息,提示您无法执行此操作或执行其他操作.我也尝试启动到appworld网站页面,但是appworld没有抓住它.处理该链接的正确方法是什么?

It pops up a browser and then I get a message about not being able to do it or something. I also tried to launch to the appworld website page but appworld isn't grabbing it. What would be to correct way to handle this link?

推荐答案

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

The normal market:// link should actually work.

这篇关于Android运行时中的Appworld市场链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 13:58