有没有办法将用户引导到另一个应用程序的市场?

时间:2011-05-19 08:45:02

标签: android google-play

我想将用户从用户当前正在运行的应用程序导向市场,以下载其他应用程序。

2 个答案:

答案 0 :(得分:1)

是。试试这个:

Intent intent = new Intent(Intent.ACTION_VIEW,
    Uri.parse("https://market.android.com/details?id=com.hg.cyberlords")); 

c.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
c.startActivity(intent); 

这将使用“Cyber​​lords”应用程序打开市场应用程序。

答案 1 :(得分:1)

市场链接是:market:// search?q = pname:your.package.name

在您的代码中使用它:

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

来自:http://developer.android.com/guide/publishing/publishing.html#marketintent

相关问题