Intent installIntent = new Intent("android.intent.action.VIEW");
installIntent.setData(Uri.parse("market://search?q=pname:"+packageName));
startActivity(installIntent);
其中packageName为软件包名
Uri可以为(包名):http://market.android.com/search?q=pname:<package> ormarket://search?q=pname:<package>
(作者名)http://market.android.com/search?q=pub:"<Developer Name>" ormarket://search?q=pub:"<Developer Name>"
(关键字)http://market.android.com/search?q=<substring> or market://search?q=<substring>
(多项查询)
http://market.android.com/search?q=world pname:com.android.hello pub:Android
本文介绍了一种通过Intent在Android设备上跳转至Google Play商店搜索指定应用的方法。该方法支持通过软件包名、作者名或关键字进行搜索,并提供了具体的Intent实现代码示例。
5805

被折叠的 条评论
为什么被折叠?



