有没有办法让用户进入另一个应用程序的市场?
答
的纽带,以市场为:市场://搜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);
这将打开与“Cyberlords”应用程序的市场应用程序。
检查此链接http://stackoverflow.com/questions/2453398/android-new-intent – 2011-05-19 08:51:27