java.lang.Object | ||
↳ | android.content.pm.PackageItemInfo | |
↳ | android.content.pm.ComponentInfo |
Known Direct Subclasses |
Base class containing information common to all application components
(ActivityInfo
, ServiceInfo
). This class is not intended
to be used by itself; it is simply here to share common definitions
between all application components. As such, it does not itself
implement Parcelable, but does provide convenience methods to assist
in the implementation of Parcelable in subclasses.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
applicationInfo | Global information about the application/package this component is a part of. | ||||||||||
descriptionRes | A string resource identifier (in the package's resources) containing a user-readable description of the component. | ||||||||||
enabled | Indicates whether or not this component may be instantiated. | ||||||||||
exported | Set to true if this component is available for use by other applications. | ||||||||||
processName | The name of the process this component should run in. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.content.pm.PackageItemInfo
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the banner resource identifier to use for this component.
| |||||||||||
Return the icon resource identifier to use for this component.
| |||||||||||
Return the logo resource identifier to use for this component.
| |||||||||||
Return whether this component and its enclosing application are enabled.
| |||||||||||
Retrieve the current textual label associated with this item.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.content.pm.PackageItemInfo
| |||||||||||
From class
java.lang.Object
|
Global information about the application/package this component is a part of.
A string resource identifier (in the package's resources) containing a user-readable description of the component. From the "description" attribute or, if not set, 0.
Indicates whether or not this component may be instantiated. Note that this value can be
overriden by the one in its parent ApplicationInfo
.
Set to true if this component is available for use by other applications.
Comes from android:exported
of the
<activity>, <receiver>, <service>, or
<provider> tag.
The name of the process this component should run in. From the "android:process" attribute or, if not set, the same as applicationInfo.processName.
Return the banner resource identifier to use for this component. If the component defines a banner, that is used; else, the application banner is used.
Return the icon resource identifier to use for this component. If the component defines an icon, that is used; else, the application icon is used.
Return the logo resource identifier to use for this component. If the component defines a logo, that is used; else, the application logo is used.
Return whether this component and its enclosing application are enabled.
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. |
---|