java.lang.Object | |
↳ | android.content.pm.PackageItemInfo |
Known Direct Subclasses |
Known Indirect Subclasses |
Base class containing information common to all package items held by the package manager. This provides a very common basic set of attributes: a label, icon, and meta-data. This class is not intended to be used by itself; it is simply here to share common definitions between all items returned by the package manager. As such, it does not itself implement Parcelable, but does provide convenience methods to assist in the implementation of Parcelable in subclasses.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
PackageItemInfo.DisplayNameComparator |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
banner | A drawable resource identifier (in the package's resources) of this component's banner. | |||||||||
|
icon | A drawable resource identifier (in the package's resources) of this component's icon. | |||||||||
|
labelRes | A string resource identifier (in the package's resources) of this component's label. | |||||||||
|
logo | A drawable resource identifier (in the package's resources) of this component's logo. | |||||||||
|
metaData | Additional meta-data associated with this component. | |||||||||
|
name | Public name of this item. | |||||||||
|
nonLocalizedLabel | The string provided in the AndroidManifest file, if any. | |||||||||
|
packageName | Name of the package that this item is in. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Retrieve the current graphical banner associated with this item.
|
||||||||||
|
Retrieve the current graphical icon associated with this item.
|
||||||||||
|
Retrieve the current textual label associated with this item.
|
||||||||||
|
Retrieve the current graphical logo associated with this item.
|
||||||||||
|
Load an XML resource attached to the meta-data of this item.
|
||||||||||
|
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
A drawable resource identifier (in the package's resources) of this component's banner. From the "banner" attribute or, if not set, 0.
A drawable resource identifier (in the package's resources) of this component's icon. From the "icon" attribute or, if not set, 0.
A string resource identifier (in the package's resources) of this component's label. From the "label" attribute or, if not set, 0.
A drawable resource identifier (in the package's resources) of this component's logo. Logos may be larger/wider than icons and are displayed by certain UI elements in place of a name or name/icon combination. From the "logo" attribute or, if not set, 0.
Additional meta-data associated with this component. This field
will only be filled in if you set the
GET_META_DATA
flag when requesting the info.
Public name of this item. From the "android:name" attribute.
The string provided in the AndroidManifest file, if any. You
probably don't want to use this. You probably want
getApplicationLabel(ApplicationInfo)
Retrieve the current graphical banner associated with this item. This will call back on the given PackageManager to load the banner from the application.
pm | A PackageManager from which the banner can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|
Retrieve the current graphical icon associated with this item. This will call back on the given PackageManager to load the icon from the application.
pm | A PackageManager from which the icon can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|
Retrieve the current textual label associated with this item. This will call back on the given PackageManager to load the label from the application.
pm | A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|
Retrieve the current graphical logo associated with this item. This will call back on the given PackageManager to load the logo from the application.
pm | A PackageManager from which the logo can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|
Load an XML resource attached to the meta-data of this item. This will retrieved the name meta-data entry, and if defined call back on the given PackageManager to load its XML file from the application.
pm | A PackageManager from which the XML can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|---|
name | Name of the meta-date you would like to load. |