注:在《疯狂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所对应的组件。

版权声明:本文为博主原创文章,未经博主允许不得转载。

最新文章

  1. ActiveMQ笔记(6):消息延时投递
  2. BAYSY2 的LVDS引脚 笔记
  3. sql ce4 的问题
  4. UITabBarButton 点击失效问题
  5. 10个顶级的CSS UI开源框架
  6. Windows系统自带工具的 cmd 命令
  7. undercore & Backbone对AMD的支持(Require.js中如何使用undercore & Backbone)
  8. JS - The react framework
  9. Google搜索镜像
  10. hadoop HA 之 QJM
  11. Template_5模板拾遗1
  12. Android时间互换代码
  13. 注册“Oracle Provider for OLE DB”和创建链接服务器
  14. Java的动态加载及其安全性问题
  15. Select()和SelectMany()的区别
  16. JAVA进阶15
  17. azure cosmos db (mongo DB)
  18. Git工具使用
  19. Django + Mysql 中关于时间异常返回500错误的解决
  20. apacheTomcat

热门文章

  1. UnrealEngine4针对游戏模式的思考
  2. 编程算法 - 水洼的数量 代码(C)
  3. DIV+CSS两种盒子模型(W3C盒子与IE盒子)
  4. actionBar-双行字体大小修改
  5. Java循环链表实现约瑟夫环(搬运)
  6. 从头认识java-17.4 具体解释同步(3)-对象锁
  7. 【习题 6-6 UVA - 12166 】Equilibrium Mobile
  8. [置顶] WebService学习总结(3)——使用java JDK开发WebService
  9. nginx+tomcat 架构 HttpServletRequest.getScheme()获取正确的协议
  10. web.config访问走代理的配置