Intent七在属性之一:ComponentName 分类: H1_ANDROID 2013-11-10 10:54 1184人阅读 评论(1) 收藏
注:在《疯狂android讲义》中,此属性称为Component,官方文档中称为ComponentName。
1、The name of the component that should handle the intent. This field is a ComponentName object — a combination of the fully qualified class name of the target component (for example "com.example.project.app.FreneticActivity") and the package name set in
the manifest file of the application where the component resides (for example, "com.example.project"). The package part of the component name and the package name set in the manifest do not necessarily have to match.
The component name is optional. If it is set, the Intent object is delivered to an instance of the designated class. If it is not set, Android uses other information in the Intent object to locate a suitable target
— see Intent Resolution, later in this document.
The component name is set by setComponent(), setClass(), or setClassName() and read by getComponent().
2、ComponentName用于显式指定Intent所对应的组件。
版权声明:本文为博主原创文章,未经博主允许不得转载。
最新文章
- ActiveMQ笔记(6):消息延时投递
- BAYSY2 的LVDS引脚 笔记
- sql ce4 的问题
- UITabBarButton 点击失效问题
- 10个顶级的CSS UI开源框架
- Windows系统自带工具的 cmd 命令
- undercore &; Backbone对AMD的支持(Require.js中如何使用undercore &; Backbone)
- JS - The react framework
- Google搜索镜像
- hadoop HA 之 QJM
- Template_5模板拾遗1
- Android时间互换代码
- 注册“Oracle Provider for OLE DB”和创建链接服务器
- Java的动态加载及其安全性问题
- Select()和SelectMany()的区别
- JAVA进阶15
- azure cosmos db (mongo DB)
- Git工具使用
- Django + Mysql 中关于时间异常返回500错误的解决
- apacheTomcat
热门文章
- UnrealEngine4针对游戏模式的思考
- 编程算法 - 水洼的数量 代码(C)
- DIV+CSS两种盒子模型(W3C盒子与IE盒子)
- actionBar-双行字体大小修改
- Java循环链表实现约瑟夫环(搬运)
- 从头认识java-17.4 具体解释同步(3)-对象锁
- 【习题 6-6 UVA - 12166 】Equilibrium Mobile
- [置顶]
 WebService学习总结(3)——使用java JDK开发WebService
- nginx+tomcat 架构 HttpServletRequest.getScheme()获取正确的协议
- web.config访问走代理的配置