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

Intent七在属性之一:ComponentName相关推荐

  1. Intent的七大属性, ComponentName、  Action 、 Category 、 Data  、Type、  Extra  、Flags。

    目录 Intent的七大属性: ComponentName.  Action . Category . Data  .Type.  Extra  .Flags. (一).ComponentName属性 ...

  2. android之Intent的七大属性

    Intent用于封装程序的"调用意图".两个Activity之间,可以把需要交换的数据,封装成Bundle对象,然后使用Intent对象,携带数据到另一个Activity中.实现两 ...

  3. android 之 Activity管理与Intent的六大属性

    Task的概念: 任务(Task):为了完成一个目标而产生的多个Activity的集合 Back Stack 回退(返回)栈:一个先进后出的数据结构,用来存储完成目标所需要的Activity的集合 A ...

  4. Intent 的Flag属性(Activity在栈位置的主宰者)

    Intent 的Flag属性可用来控制Activity在栈中的排列位置,本文列举了常见的Flag. 例--(以无动画方式启动ActivityB): Intent intent=new Intent(A ...

  5. Android之关于Intent的Flag属性的讲解

    以下是今天讲解Intent的Flag属性的列表: FLAG_ACTIVITY_BROUGHT_TO_FRONT FLAG_ACTIVITY_CLEAR_TOP FLAG_ACTIVITY_NEW_TA ...

  6. SQL Server 2005 XML 操作总结(七)属性操作——插入、修改操作

    ========插入操作========= ====插入单个属性===== --为第一个book节点插入属性name值为"直接插入" set @data.modify('inser ...

  7. 前端入门教程(七)CSS属性设置

    宽和高 width属性可以为元素设置宽度. height属性可以为元素设置高度. 块级标签才能设置宽度,内联标签的宽度由内容来决定. 字体属性 文字字体 font-family可以把多个字体名称作为一 ...

  8. Spring源码解析(七)-Bean属性间的循环依赖

    首先复习一下前面学习的Spring容器启动的大致流程,首先Spring会先扫描所有需要实例化的Bean,将这些Bean的信息封装成一个个BeanDefinition,然后注册到BeanDefiniti ...

  9. jQuery(七)--属性操作:attr、removeAttr、prop、removeProp、addClass、removeClass、toggleClass、html、text、val

    目录 一.属性 1.1 操作属性 二.属性节点 2.1 概述 三.jQuery中的属性和属性节点 3.1 attr() 3.2 removeAttr() 3.3 prop() 3.4 removePr ...

最新文章

  1. 也许是被忽略的update语句
  2. NTU 课程笔记:Nonparametric statistics
  3. 字符串所有排列组合暴力递归
  4. .NET Core 下使用 Exceptionless 记录日志
  5. HOJ 2678 Stars
  6. Mac在Anaconda中安装XGBoost
  7. 递归实例以及应用包含形参辨析
  8. MATLAB图形界面设计(上)
  9. Java用swing实现的贪吃蛇
  10. iredmail开源邮件系统部署
  11. Spring之注入集合值
  12. DELPHI XE5 FOR ANDROID 模仿驾考宝典 TMEMO 控件随着字数增多自动增高
  13. 御剑后台扫描工具下载
  14. 淘宝用户行为分析(python+mysql+tableau)
  15. 软件项目中的成本构成及估算方法【转】
  16. ICRA 2020轨迹预测竞赛冠军的方法总结
  17. 【高阶乐理】即兴演奏——和弦进行的重要原则(现代流行乐)
  18. html+显示平方米,平方米符号怎么打【四种方法】
  19. 诚迈科技发布OpenHarmony发行版鸿诚志远HongZOS
  20. 磁带机LTO类型简单介绍(Tape drive LTO type)

热门文章

  1. L1-011 A-B(13行代码AC!!)
  2. [leetcode] 105.从前序与中序遍历构造二叉树
  3. mysql1231错误_Mysql学习---Python操作Mysql 1231
  4. Nginx域名访问与访问控制
  5. 【android开发】 修改控件Spinner内容的字体大小 颜色等属性
  6. mysql sql宽字节注入_sql注入之宽字节注入
  7. php查询socket数据包头,php 查询数组值php中关于socket的系列函数总结
  8. ie内核浏览器_[正式版下载] 微软全新 Chrome 内核 Edge 浏览器!原生支持 Chrome 插件扩展...
  9. python函数编程实战_别找了,这是 Pandas 最详细教程了
  10. Linux打开rtf文档,在linux下设置开机自动启动程序的方法_精品.rtf