Android Market的应用程序链接 [英] Android market app Link

查看:124
本文介绍了Android Market的应用程序链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写这将启动Android Market中的应用程序。
(活动应该只有一个活动)
所以PLZ请参考我在Android Market链接或任何建议。


解决方案

 开放的URI = Uri.parse(市场://搜Q =栏codeS);
意向意图=新意图(Intent.ACTION_VIEW,URI);
startActivity(意向);

这个例子code将推出市场,搜索栏codeS。

I want to write an app which launches android market. (The activity should only one activity) so plz refer me the android market link or any suggestion.

解决方案

Uri uri = Uri.parse("market://search?q=barcodes");
Intent intent = new Intent (Intent.ACTION_VIEW, uri); 
startActivity(intent);

This example code will launch the market and search for barcodes.

这篇关于Android Market的应用程序链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆