包android.content.pm
类 ApplicationInfo

java.lang.Object

android.content.pm.PackageItemInfo

android.content.pm.ApplicationInfo

所有已实现的接口:

Parcelable

public class ApplicationInfo

extends PackageItemInfo

implements Parcelable

Information you can retrieve about a particular application. This corresponds to information collected from the AndroidManifest.xml's <application> tag.

嵌套类摘要

static class

ApplicationInfo.DisplayNameComparator

从接口 android.os.Parcelable 继承的嵌套类/接口

Parcelable.Creator<T>

字段摘要

String

className 
          Class implementing the Application object.

static Parcelable.Creator<ApplicationInfo>

CREATOR

String

dataDir 
          Full path to a directory assigned to the package for its persistent data.

int

descriptionRes 
          A style resource identifier (in the package's resources) of the description of an application.

boolean

enabled 
          When false, indicates that all components within this application are considered disabled, regardless of their individually set enabled status.

static int

FLAG_ALLOW_CLEAR_USER_DATA 
          Value for flags: default value for the corresponding ActivityInfo flag.

static int

FLAG_ALLOW_TASK_REPARENTING 
          Value for flags: default value for the corresponding ActivityInfo flag.

static int

FLAG_DEBUGGABLE 
          Value for flags: set to true if this application would like to allow debugging of its code, even when installed on a non-development system.

static int

FLAG_FACTORY_TEST 
          Value for flags: set to true iif this application holds the android.Manifest.permission#FACTORY_TEST permission and the device is running in factory test mode.

static int

FLAG_HAS_CODE 
          Value for flags: set to true if this application has code associated with it.

static int

FLAG_PERSISTENT 
          Value for flags: set to true if this application is persistent.

static int

FLAG_SYSTEM 
          Value for flags: if set, this application is installed in the device's system image.

static int

FLAG_UPDATED_SYSTEM_APP 
          Value for flags: default value for the corresponding ActivityInfo flag.

int

flags 
          Flags associated with the application.

String

manageSpaceActivityName 
          Class implementing the Application's manage space functionality.

String

permission 
          Optional name of a permission required to be able to access this application's components.

String

processName 
          The name of the process this application should run in.

String

publicSourceDir 
          Full path to the location of the publicly available parts of this package (i.e. the resources and manifest).

String[]

sharedLibraryFiles 
          Paths to all shared libraries this application is linked against.

String

sourceDir 
          Full path to the location of this package.

String

taskAffinity 
          Default task affinity of all activities in this application.

int

theme 
          A style resource identifier (in the package's resources) of the default visual theme of the application.

int

uid 
          The kernel user-ID that has been assigned to this application; currently this is not a unique ID (multiple applications can have the same uid).

从类 android.content.pm.PackageItemInfo 继承的字段

icon, labelRes, metaData, name, nonLocalizedLabel, packageName

从接口 android.os.Parcelable 继承的字段

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

构造方法摘要

ApplicationInfo()

ApplicationInfo(ApplicationInfo orig)

方法摘要

int

describeContents() 
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.

void

dump(Printer pw, String prefix)

CharSequence

loadDescription(PackageManager pm) 
          Retrieve the textual description of the application.

String

toString() 
          Returns a string containing a concise, human-readable description of this object.

void

writeToParcel(Parcel dest, int parcelableFlags) 
          Flatten this object in to a Parcel.

从类 android.content.pm.PackageItemInfo 继承的方法

loadIcon, loadLabel, loadXmlMetaData

从类 java.lang.Object 继承的方法

equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

字段详细信息

taskAffinity

public String taskAffinity

Default task affinity of all activities in this application. See ActivityInfo.taskAffinity for more information. This comes from the "taskAffinity" attribute.

permission

public String permission

Optional name of a permission required to be able to access this application's components. From the "permission" attribute.

processName

public String processName

The name of the process this application should run in. From the "process" attribute or, if not set, the same as packageName.

className

public String className

Class implementing the Application object. From the "class" attribute.

descriptionRes

public int descriptionRes

A style resource identifier (in the package's resources) of the description of an application. From the "description" attribute or, if not set, 0.

theme

public int theme

A style resource identifier (in the package's resources) of the default visual theme of the application. From the "theme" attribute or, if not set, 0.

manageSpaceActivityName

public String manageSpaceActivityName

Class implementing the Application's manage space functionality. From the "manageSpaceActivity" attribute. This is an optional attribute and will be null if application's dont specify it in their manifest

FLAG_SYSTEM

public static final int FLAG_SYSTEM

Value for flags: if set, this application is installed in the device's system image.

另请参见:

常量字段值

FLAG_DEBUGGABLE

public static final int FLAG_DEBUGGABLE

Value for flags: set to true if this application would like to allow debugging of its code, even when installed on a non-development system. Comes from android:debuggableof the <application> tag.

另请参见:

常量字段值

FLAG_HAS_CODE

public static final int FLAG_HAS_CODE

Value for flags: set to true if this application has code associated with it. Comes from android:hasCode of the <application> tag.

另请参见:

常量字段值

FLAG_PERSISTENT

public static final int FLAG_PERSISTENT

Value for flags: set to true if this application is persistent. Comes from android:persistent of the <application> tag.

另请参见:

常量字段值

FLAG_FACTORY_TEST

public static final int FLAG_FACTORY_TEST

Value for flags: set to true iif this application holds the android.Manifest.permission#FACTORY_TEST permission and the device is running in factory test mode.

另请参见:

常量字段值

FLAG_ALLOW_TASK_REPARENTING

public static final int FLAG_ALLOW_TASK_REPARENTING

Value for flags: default value for the corresponding ActivityInfo flag. Comes from android:allowTaskReparenting of the <application> tag.

另请参见:

常量字段值

FLAG_ALLOW_CLEAR_USER_DATA

public static final int FLAG_ALLOW_CLEAR_USER_DATA

Value for flags: default value for the corresponding ActivityInfo flag. Comes from android:allowClearUserData of the <application> tag.

另请参见:

常量字段值

FLAG_UPDATED_SYSTEM_APP

public static final int FLAG_UPDATED_SYSTEM_APP

Value for flags: default value for the corresponding ActivityInfo flag.

另请参见:

常量字段值

flags

public int flags

Flags associated with the application. Any combination of FLAG_SYSTEM, FLAG_DEBUGGABLE, FLAG_HAS_CODE, FLAG_PERSISTENT, FLAG_FACTORY_TEST, and FLAG_ALLOW_TASK_REPARENTING FLAG_ALLOW_CLEAR_USER_DATA.

sourceDir

public String sourceDir

Full path to the location of this package.

publicSourceDir

public String publicSourceDir

Full path to the location of the publicly available parts of this package (i.e. the resources and manifest). For non-forward-locked apps this will be the same as {@link #sourceDir).

sharedLibraryFiles

public String[] sharedLibraryFiles

Paths to all shared libraries this application is linked against. This field is only set if the PackageManager.GET_SHARED_LIBRARY_FILES flag was used when retrieving the structure.

dataDir

public String dataDir

Full path to a directory assigned to the package for its persistent data.

uid

public int uid

The kernel user-ID that has been assigned to this application; currently this is not a unique ID (multiple applications can have the same uid).

enabled

public boolean enabled

When false, indicates that all components within this application are considered disabled, regardless of their individually set enabled status.

CREATOR

public static final Parcelable.Creator<ApplicationInfo> CREATOR

构造方法详细信息

ApplicationInfo

public ApplicationInfo()

ApplicationInfo

public ApplicationInfo(ApplicationInfo orig)

方法详细信息

dump

public void dump(Printer pw,

String prefix)

toString

public String toString()

从类 Object 复制的描述

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation simply concatenates the class name, the '@' sign and a hexadecimal representation of the object's Object.hashCode(), that is, it is equivalent to the following expression:

getClass().getName() + '@' + Integer.toHexString(hashCode())

覆盖:

类 Object 中的 toString

返回:

a printable representation of this object.

describeContents

public int describeContents()

从接口 Parcelable 复制的描述

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

指定者:

接口 Parcelable 中的 describeContents

返回:

a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel dest,

int parcelableFlags)

从接口 Parcelable 复制的描述

Flatten this object in to a Parcel.

指定者:

接口 Parcelable 中的 writeToParcel

覆盖:

类 PackageItemInfo 中的 writeToParcel

参数:

dest - The Parcel in which the object should be written.

parcelableFlags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

loadDescription

public CharSequence loadDescription(PackageManager pm)

Retrieve the textual description of the application. Thiswill call back on the given PackageManager to load the description fromthe application.

参数:

pm - A PackageManager from which the label can be loaded; usuallythe PackageManager from which you originally retrieved this item.

返回:

Returns a CharSequence containing the application's description.If there is no description, null is returned.

类 ApplicationInfo详解相关推荐

  1. 类ApplicationInfo详解

    包android.content.pm java.lang.Object android.content.pm.PackageItemInfo android.content.pm.Applicati ...

  2. qml学习笔记(二):可视化元素基类Item详解(上半场anchors等等)

    原博主博客地址:http://blog.csdn.net/qq21497936 本文章博客地址:http://blog.csdn.net/qq21497936/article/details/7851 ...

  3. .net System.Web.Caching.Cache缓存类使用详解(转载)

    转自:http://www.cnblogs.com/virusswb/articles/1681561.html net System.Web.Caching.Cache缓存类使用详解 System. ...

  4. ios开发读取剪切板的内容_iOS中管理剪切板的UIPasteboard粘贴板类用法详解

    一.自带剪切板操作的原生UI控件在iOS的UI系统中,有3个控件自带剪切板操作,分别是UITextField.UITextView与UIWebView.在这些控件的文字交互处进行长按手势可以在屏幕视图 ...

  5. Java记录 -22- Java的基类Object详解

    Java的基类Object详解 Java的JDK文档要经常查阅使用,最好查看英文的文档. Oracle官方在线 Java API Specifications http://www.oracle.co ...

  6. C#中NameValueCollection类用法详解

    C#中NameValueCollection类用法详解,1.NameValueCollection类集合是基于 NameObjectCollectionBase 类. 但与 NameObjectCol ...

  7. pythonsvc_sklearn-SVC实现与类参数详解

    sklearn-SVC实现与类参数 它是基于libsvm实现的.随着样本数量的增加,拟合时间的复杂度要高于二次,这就使得当样板数量超过一万个时,很难扩展到数据集中. 在多类处理时,是按照1对1的方案进 ...

  8. laravel 如何 new php 类,PHP实例:laravel通过创建自定义artisan make命令来新建类文件详解...

    <PHP实例:laravel通过创建自定义artisan make命令来新建类文件详解>要点: 本文介绍了PHP实例:laravel通过创建自定义artisan make命令来新建类文件详 ...

  9. (117)System Verilog类继承详解

    (117)System Verilog类继承详解 1.1 目录 1)目录 2)FPGA简介 3)System Verilog简介 4)System Verilog类继承详解 5)结语 1.2 FPGA ...

最新文章

  1. 树莓派siri homekit_利用树莓派Zero自制一款Homekit摄像头,看上去挺酷,手痒了吗?...
  2. python第三方库排行-Python模块汇总(常用第三方库)
  3. 最长上升子序列问题 (LIS)
  4. 数据挖掘学习日志(part2)--主成分法确定权重与R实现
  5. xcode8 崩溃问题
  6. python 元组是什么_python元组是什么?python元组的用法介绍
  7. 剑指offer面试题26. 树的子结构(链表)
  8. mysql安装教程_mysql8.0.20安装教程,mysql下载安装教程8.0.20
  9. 2.PHP7内核剖析 --- SAPI
  10. mysql select trim_mysql trim函数用法举例
  11. 2021软件评测师考试大纲(清华出版社2021.7第1次印刷)
  12. iphone屏幕镜像如何全屏_苹果手机投到电视上能全屏嘛
  13. 科技论文中图片的处理方法
  14. 史上最全的 11 张网络安全思维导图!
  15. oracle 11g 安装 先决性检查 环境变量,Window XP安装oracle11gR2数据库先决条件检查的问题解决(实测有效)...
  16. Freetype的使用
  17. 怎么判断数字n是否为2的x次方,即2的幂次呢,比如2,4,8,16,32
  18. 【Python+数学】笛卡儿积
  19. Pipeline(流水线)模式
  20. 结合OD和《植物大战僵尸》,实现随意过关

热门文章

  1. Java高并发程序设计入门
  2. 植物大战僵尸:学会使用人造指针
  3. 通信码元速率和带宽理解
  4. 程序员的算法课(6)-最长公共子序列(LCS)
  5. dnf最新地图编号2020_DNF2020搬砖地图选哪个
  6. android隐藏app应用程序,Android开发:怎样隐藏自己的app应用
  7. 快速排序算法(图解+代码)
  8. 使用ListIterator 对List遍历时修改,删除
  9. 为什么要配置环境变量以及配置环境变量的步骤
  10. 从keystore(jks)文件中提取私钥