zoukankan      html  css  js  c++  java
  • Intent七在属性之一:ComponentName


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

  • 相关阅读:
    HTML5第二节
    HTML5在移动端开发的12大特性
    移动端开发遇到的坑
    html5 meta(移动端)介绍及使用
    CSS的margin塌陷(collapse)
    Block Demo
    设计模式之代理
    OC Block网上转载
    GCD之全局、主线程
    Spark SQL中 RDD 转换到 DataFrame
  • 原文地址:https://www.cnblogs.com/eaglegeek/p/4557965.html
Copyright © 2011-2022 走看看