android.content.pm.PackageItemInfo
Summary
Fields
public |
|
|
int |
icon |
A drawable resource identifier (in the package's resources) of this
component's icon. |
public |
|
|
int |
labelRes |
A string resource identifier (in the package's resources) of this
component's label. |
public |
|
|
Bundle |
metaData |
Additional meta-data associated with this component. |
public |
|
|
String |
name |
Public name of this item. |
public |
|
|
CharSequence |
nonLocalizedLabel |
The string provided in the AndroidManifest file, if any. |
public |
|
|
String |
packageName |
Name of the package that this item is in. |
Public Constructors
Protected Constructors
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Fields
public
int
icon
A drawable resource identifier (in the package's resources) of this
component'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
component's label. From the "label" attribute or, if not set, 0.
public
Bundle
metaData
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.
public
String
packageName
Name of the package that this item is in.
Public Constructors
Protected Constructors
protected
PackageItemInfo(Parcel source)
Public Methods
Retrieve the current graphical icon associated with this item. This
will call back on the given PackageManager to load the icon from
the application.
Parameters
pm
| A PackageManager from which the icon can be loaded; usually
the PackageManager from which you originally retrieved this item. |
Returns
- Returns a Drawable containing the item's icon. If the
item does not have an icon, the default activity icon is returned.
Retrieve the current textual label associated with this item. This
will call back on the given PackageManager to load the label from
the application.
Parameters
pm
| A PackageManager from which the label can be loaded; usually
the PackageManager from which you originally retrieved this item. |
Returns
- Returns a CharSequence containing the item's label. If the
item does not have a label, its name is returned.
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.
Parameters
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. |
Returns
- Returns an XmlPullParser you can use to parse the XML file
assigned as the given meta-data. If the meta-data name is not defined
or the XML resource could not be found, null is returned.
public
void
writeToParcel(Parcel dest, int parcelableFlags)
Protected Methods