有没有办法让用户进入另一个应用程序的市场?

问题描述:

我想要将用户从用户当前运行的一个应用程序导向市场,以下载其他应用程序。有没有办法让用户进入另一个应用程序的市场?

+0

检查此链接http://*.com/questions/2453398/android-new-intent – 2011-05-19 08:51:27

的纽带,以市场为:市场://搜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

是的。试试这个:

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”应用程序的市场应用程序。