在我们自己开发的app中,往往要打开android market,比如很多的app都有评分的功能,需要打开一个android market,我们要打开某个app,但是这个app并没有安装在客户的手机上,我们就需要打开一个android market定位到这个app,以便让客户下载。
通过app包名直接定位到你的App:
http://market.android.com/details?id=<app的包名>
或者
market://details?id=<app的包名>
例如:
Intent viewIntent = new Intent("android.intent.action.VIEW",
Uri.parse("market://details?id=cn.wps.moffice_eng"));
startActivity(viewIntent);
就可以定位到wps的app。
通过app包名搜索App
http://market.android.com/search?q=pname:<app的包名>
或者
market://search?q=pname:<app的包名>
通过开发者名称搜索App
http://market.android.com/search?q=pub:<开发者名称>
或者
market://search?q=pub:<开发者名称>
通过关键词搜索App
http://market.android.com/search?q=<关键词>
或者
market://search?q=<关键词>
组合查询
最后这个组合查询很少用到,例如:
market://search?q=lucky wheel pub:SkyD
本文详细介绍了如何在Android Market中直接定位到特定应用的方法,包括使用应用包名、开发者名称和关键词进行搜索,以及如何通过Intent实现从应用程序直接跳转至Market页面。
354

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



