|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.content.pm.PackageItemInfo
android.content.pm.ComponentInfo
public class ComponentInfo
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.content.pm.PackageItemInfo |
|---|
PackageItemInfo.DisplayNameComparator |
| Field Summary | |
|---|---|
ApplicationInfo |
applicationInfo
Global information about the application/package this component is a part of. |
boolean |
enabled
Indicates whether or not this component may be instantiated. |
boolean |
exported
Set to true if this component is available for use by other applications. |
String |
processName
The name of the process this component should run in. |
| Fields inherited from class android.content.pm.PackageItemInfo |
|---|
icon, labelRes, metaData, name, nonLocalizedLabel, packageName |
| Constructor Summary | |
|---|---|
|
ComponentInfo()
|
|
ComponentInfo(ComponentInfo orig)
|
protected |
ComponentInfo(Parcel source)
|
| Method Summary | |
|---|---|
protected void |
dumpBack(Printer pw,
String prefix)
|
protected void |
dumpFront(Printer pw,
String prefix)
|
int |
getIconResource()
Return the icon resource identifier to use for this component. |
Drawable |
loadIcon(PackageManager pm)
Retrieve the current graphical icon associated with this item. |
CharSequence |
loadLabel(PackageManager pm)
Retrieve the current textual label associated with this item. |
void |
writeToParcel(Parcel dest,
int parcelableFlags)
|
| Methods inherited from class android.content.pm.PackageItemInfo |
|---|
loadXmlMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ApplicationInfo applicationInfo
public String processName
public boolean enabled
ApplicationInfo.
public boolean exported
android:exported of the
<activity>, <receiver>, <service>, or
<provider> tag.
| Constructor Detail |
|---|
public ComponentInfo()
public ComponentInfo(ComponentInfo orig)
protected ComponentInfo(Parcel source)
| Method Detail |
|---|
public CharSequence loadLabel(PackageManager pm)
PackageItemInfo
loadLabel in class PackageItemInfopm - A PackageManager from which the label can be loaded; usually
the PackageManager from which you originally retrieved this item.
public Drawable loadIcon(PackageManager pm)
PackageItemInfo
loadIcon in class PackageItemInfopm - A PackageManager from which the icon can be loaded; usually
the PackageManager from which you originally retrieved this item.
public final int getIconResource()
protected void dumpFront(Printer pw,
String prefix)
dumpFront in class PackageItemInfo
protected void dumpBack(Printer pw,
String prefix)
dumpBack in class PackageItemInfo
public void writeToParcel(Parcel dest,
int parcelableFlags)
writeToParcel in class PackageItemInfo
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||