Action、Category常量表
来源:互联网 发布:小米平板软件下载 编辑:程序博客网 时间:2024/04/30 16:38
一、这是一篇关于如何将自定义的 homescreen 设定为Android的默认主页,而不需要用户选择的讨论贴,原文如下:
Another additional info: If you want that your homescreen is always the default and that the system doesn't ask to choose between different home screens simply put it that way: XML:
<intent-filter priority="1">
<action name="android.intent.action.MAIN"></action>
<category name="android.intent.category.HOME"></category>
<category name="android.intent.category.DEFAULT"></category><
category name="android.intent.category.MONKEY"></category>
</intent-filter>
The difference to the XML above is android:priority="1". It seems that the default home screen has priority 0 and therefore setting the priority of your home screen to 1 is sufficient to force the usage of your home screen.
Action
Action常量对应字符串简单说明ACTION_MAINandroid.intent.action.MAIN应用程序入口ACTION_VIEWandroid.intent.action.VIEW显示指定数据ACTION_ATTACH_DATAandroid.intent.action.ATTACH_DATA指定某块数据将被附加到其它地方ACTION_EDITandroid.intent.action.EDIT编辑指定数据ACTION_PICKandroid.intent.action.PICK从列表中选择某项并返回所选的数据ACTION_CHOOSERandroid.intent.action.CHOOSER显示一个Activity选择器ACTION_GET_CONTENTandroid.intent.action.GET_CONTENT让用户选择数据,并返回所选数据ACTION_DIALandroid.intent.action.DIAL显示拨号面板ACTION_CALLandroid.intent.action.CALL直接向指定用户打电话ACTION_SENDandroid.intent.action.SEND向其他人发送数据ACTION_SENDTOandroid.intent.action.SENDTO向其他人发送消息ACTION_ANSWERandroid.intent.action.ANSWER应答电话ACTION_INSERTandroid.intent.action.INSERT插入数据ACTION_DELETEandroid.intent.action.DELETE删除数据ACTION_RUNandroid.intent.action.RUN运行维护ACTION_SYNCandroid.intent.action.SYNC执行数据同步ACTION_PICK_ACTIVITYandroid.intent.action.PICK_ACTIVITY用于选择ActivityACTION_SEARCHandroid.intent.action.SEARCH执行搜索ACTION_WEB_SEARCHandroid.intent.action.WEB_SEARCH执行Web搜索ACTION_FACTORY_TESTandroid.intent.action.FACTORY_TEST工厂测试的入口点Category
Category常量对应字符串简单说明CATEGORY_DEFAULTandroid.intent.category.DEFAULT默认的CategoryCATEGORY_BROWSABLEandroid.intent.category.BROWSABLE指定该Activity能被浏览器安全调用CATEGORY_TABandroid.intent.category.TAB指定Activity作为TabActivity的Tab页CATEGORY_LAUNCHERandroid.intent.category.LAUNCHERActivity显示顶级程序列表中CATEGORY_INFOandroid.intent.category.INFO用于提供包信息CATEGORY_HOMEandroid.intent.category.HOME设置该Activity随系统启动而运行CATEGORY_PREFERENCEandroid.intent.category.PREFERENCE该Activity是参数面板CATEGORY_TESTandroid.intent.category.TEST该Activity是一个测试CATEGORY_CAR_DOCKandroid.intent.category.CAR_DOCK指定手机被插入汽车底座(硬件)时运行该ActivityCATEGORY_DESK_DOCKandroid.intent.category.DESK_DOCK指定手机被插入桌面底座(硬件)时运行该ActivityCATEGORY_CAR_MODEandroid.intent.category.CAR_MODE设置该Activity可在车载环境下使用
- Action、Category常量表
- intent-filter中的action与category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表 .
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- Android中Acition和Category常量表
- 如何去掉电信黑莓9930内置的QQ图标
- Unity3D 游戏引擎之游戏对象的访问绘制线与绘制面详解
- 怎么解决这个问题“The connection to adb is down, and a severe error has occured”
- 6. Lotus Notes中的开发语言
- 中文编码规则
- Action、Category常量表
- FP-growth 算法
- java的enum应用
- struts2的异常throwNoSuchMethodException
- BoneCP-Spring详细配置
- AndroidManifest.xml文件详解(service)
- 域名与端口映射
- linux 连接ftp
- Uboot启动WinCE nandflash分区显示盘符的注册表修改