android 如何实现apk search出现在系统的推荐列表里
来源:互联网 发布:淘宝厚底鞋 编辑:程序博客网 时间:2024/06/07 08:00
经常出现在系统提示要安装apk或者插件时,会默认打开一系列市场或者其他程序,如何让自己的程序也出现在这些列表里?
答案是,在系统的启动activity的intent-filter描述里加上search过滤
<intent-filter>
要测试的话,可使用如下代码启动
Market 相关
1. //寻找某个应用
2. Uri uri = Uri.parse("market://search?q=pname:pkg_name");
3. Intent it = new Intent(Intent.ACTION_VIEW, uri);
4. startActivity(it);
5. //where pkg_name is the full package path for an application
1. //显示某个应用的相关信息
2. Uri uri = Uri.parse("market://details?id=app_id");
3. Intent it = new Intent(Intent.ACTION_VIEW, uri);
4. startActivity(it);
5. //where app_id is the application ID, find the ID
6. //by clicking on your application on Market home
7. //page, and notice the ID from the address bar
其中pkg_name 就是要下载的应用的包名, 假如要在lanchuer中点击某个ICON跳转到应用详情页,就可以通过这种方式
- android 如何实现apk search出现在系统的推荐列表里
- android 如何实现apk search出现在…
- Android中如何让一个Activity不出现在recent列表里
- android 应用程序不出现在最近打开程序列表里
- Android避免应用出现在最近使用APP列表里
- android apk 签名 之 在源码环境里如何完成
- 如何在Android中实现Search Activity
- Android 系统apk编译源代码的时候如何引用android-support-v4.jar 在Android.mk
- android-实现仿系统search框的autoCompleteTextView----如何调用系统的隐藏方法
- android-实现仿系统search框的autoCompleteTextView----如何调用系统的隐藏方法
- Android ROM 的系统组成以及APK文件精简列表
- Android系统移植与调试之------->如何修改Android自带的apk出现一圈圈类似鸡蛋的花纹
- 在android中如何调用系统的程序安装器来安装apk
- APK安装后在桌面的图标列表里不显示的方法
- APK安装后在桌面的图标列表里不显示/显示的方法
- Android应用如何触发应用出现在打开文件方式的列表中
- APK安装后在桌面的图标列表里不显示
- android系统里的配置文件如何生效
- struts2 parseRequest(request)为空替代方法
- 使用云(BAE)实现android应用数据的远程存取(MySQL)
- 通过iptables限制并发连接数20130515
- Bus error 续二
- 黑马程序员 Java基础 ---> String类
- android 如何实现apk search出现在系统的推荐列表里
- VxWorks组件技术
- 1 Unix家族系谱图,2 Linux各版本血缘关系
- Android MediaPlayer(2)
- 找到11的n次方十进制表示中1的个数
- android创建sqlite数据库及在SD卡上创建数据库
- INFORMATICA POWERCENTER 介绍
- Help my grid’s remote sorting (remoteSort:true) is not working after moving to Extjs 4
- 常用的数据结构以及算法