java.lang.Object | ||
↳ | android.content.pm.PackageItemInfo | |
↳ | android.content.pm.ApplicationInfo |
Information you can retrieve about a particular application. This corresponds to information collected from the AndroidManifest.xml's <application> tag.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ApplicationInfo.DisplayNameComparator |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<ApplicationInfo> | CREATOR | ||||||||||
int | FLAG_ALLOW_CLEAR_USER_DATA | Value for flags: default value for the corresponding ActivityInfo flag. | |||||||||
int | FLAG_ALLOW_TASK_REPARENTING | Value for flags: default value for the corresponding ActivityInfo flag. | |||||||||
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. | |||||||||
int | FLAG_FACTORY_TEST | Value for flags: set to true iif this application holds the FACTORY_TEST permission and the device is running in factory test mode. | |||||||||
int | FLAG_HAS_CODE | Value for flags: set to true if this application has code associated with it. | |||||||||
int | FLAG_PERSISTENT | Value for flags: set to true if this application is persistent. | |||||||||
int | FLAG_SYSTEM | Value for flags: if set, this application is installed in the device's system image. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
className | Class implementing the Application object. | ||||||||||
dataDir | Full path to a directory assigned to the package for its persistent data. | ||||||||||
descriptionRes | A style resource identifier (in the package's resources) of the description of an application. | ||||||||||
enabled | When false, indicates that all components within this application are considered disabled, regardless of their individually set enabled status. | ||||||||||
flags | Flags associated with the application. | ||||||||||
manageSpaceActivityName | Class implementing the Application's manage space functionality. | ||||||||||
permission | Optional name of a permission required to be able to access this application's components. | ||||||||||
processName | The name of the process this application should run in. | ||||||||||
publicSourceDir | Full path to the location of the publicly available parts of this package (i.e. | ||||||||||
sharedLibraryFiles | Paths to all shared libraries this application is linked against. | ||||||||||
sourceDir | Full path to the location of this package. | ||||||||||
taskAffinity | Default task affinity of all activities in this application. | ||||||||||
theme | A style resource identifier (in the package's resources) of the default visual theme of the application. | ||||||||||
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). |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.content.pm.PackageItemInfo
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Retrieve the textual description of the application.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class android.content.pm.PackageItemInfo
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
|
Value for flags: default value for the corresponding ActivityInfo flag. Comes from android:allowClearUserData of the <application> tag.
Value for flags: default value for the corresponding ActivityInfo flag. Comes from android:allowTaskReparenting of the <application> tag.
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:debuggable of the <application> tag.
Value for flags: set to true iif this application holds the FACTORY_TEST permission and the device is running in factory test mode.
Value for flags: set to true if this application has code associated with it. Comes from android:hasCode of the <application> tag.
Value for flags: set to true if this application is persistent. Comes from android:persistent of the <application> tag.
Value for flags: if set, this application is installed in the device's system image.
Class implementing the Application object. From the "class" attribute.
Full path to a directory assigned to the package for its persistent data.
A style resource identifier (in the package's resources) of the description of an application. From the "description" attribute or, if not set, 0.
When false, indicates that all components within this application are considered disabled, regardless of their individually set enabled status.
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.
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
Optional name of a permission required to be able to access this application's components. From the "permission" attribute.
The name of the process this application should run in. From the "process" attribute or, if not set, the same as packageName.
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).
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.
Full path to the location of this package.
Default task affinity of all activities in this application. See taskAffinity for more information. This comes from the "taskAffinity" attribute.
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.
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).
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Retrieve the textual description of the application. This will call back on the given PackageManager to load the description from the application.
pm | A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|
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 hashCode(), that is, it is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())