Android 有没有办法引导用户到市场上购买其他应用程序?

Android 有没有办法引导用户到市场上购买其他应用程序?,android,google-play,Android,Google Play,我想引导用户从用户当前运行的一个应用程序到市场,下载另一个应用程序。是。试试这个: 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); 这将使用“Cyberlo

我想引导用户从用户当前运行的一个应用程序到市场,下载另一个应用程序。

是。试试这个:

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

这将使用“Cyberlords”应用程序打开市场应用程序。

市场链接为: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);
发件人:

检查此链接