English | Site Directory

Android - An Open Handset Alliance Project

android.content.pm
public class

android.content.pm.ApplicationInfo

java.lang.Object
android.content.pm.ApplicationInfo Parcelable

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

Nested Classes

Summary

Constants

      Value  
Creator  CREATOR       

Fields

public      String  className  Java class implementing the Application object. 
public      String  dataDir  Full path to a directory assigned to the package for its persistent data. 
public      boolean  enabled  When false, indicates that all components within this appication are considered disabled, regardless of their individually set enabled status. 
public      int  gid  The kernel group-ID that has been assigned to this application. 
public      int  icon  A drawable resource identifier (in the package's resources) of this application's icon. 
public      int  labelRes  A string resource identifier (in the package's resources) of this application's label. 
public      CharSequence  nonLocalizedLabel  The string provided in the AndroidManifest file, if any. 
public      String  packageName  The package name for this application. 
public      String  permission  Optional name of a permission required to be able to access this application's components. 
public      boolean  persistent  Set to true if this application is persistent. 
public      String  processName  The name of the process this application should run in. 
public      String  sourceDir  Full path to the location of this package. 
public      boolean  system  Set to true if this application is installed in the device's system image. 
public      String  taskAffinity  Default task affinity of all activities in this application. 
public      int  theme  A style resource identifier (in the package's resources) of the default visual theme of the application. 
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). 

Public Constructors

          ApplicationInfo()

Public Methods

        void  dump(Printer pw, String prefix)
        String  toString()
Answers a string containing a concise, human-readable description of the receiver.
        void  writeToParcel(Parcel dest)
Methods inherited from class java.lang.Object
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator CREATOR

Fields

public String className

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

public String dataDir

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

public boolean enabled

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

public int gid

The kernel group-ID that has been assigned to this application.

public int icon

A drawable resource identifier (in the package's resources) of this application's icon. From the "icon" attribute or, if not set, 0.

public int labelRes

A string resource identifier (in the package's resources) of this application's label. From the "label" attribute or, if not set, 0.

public CharSequence nonLocalizedLabel

The string provided in the AndroidManifest file, if any. You probably don't want to use this. You probably want getApplicationLabel(ApplicationInfo)

public String packageName

The package name for this application. From the <manifest> tag's "name" attribute.

public String permission

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

public boolean persistent

Set to true if this application is persistent. From the "persistent" attribute or, if not set, false.

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.

public String sourceDir

Full path to the location of this package.

public boolean system

Set to true if this application is installed in the device's system image.

public String taskAffinity

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

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.

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).

Public Constructors

public ApplicationInfo()

Public Methods

public void dump(Printer pw, String prefix)

public String toString()

Answers a string containing a concise, human-readable description of the receiver.

public void writeToParcel(Parcel dest)

Build m5-rc15g - 14 May 2008 12:50