|
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.ResolveInfo
public class ResolveInfo
Information that is returned from resolving an intent against an IntentFilter. This partially corresponds to information collected from the AndroidManifest.xml's <intent> tags.
| Nested Class Summary | |
|---|---|
static class |
ResolveInfo.DisplayNameComparator
|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
ActivityInfo |
activityInfo
The activity that corresponds to this resolution match, if this resolution is for an activity. |
static Parcelable.Creator<ResolveInfo> |
CREATOR
|
IntentFilter |
filter
The IntentFilter that was matched for this ResolveInfo. |
int |
icon
A drawable resource identifier (in the package's resources) of this match's icon. |
boolean |
isDefault
This filter has specified the Intent.CATEGORY_DEFAULT, meaning it would like to be considered a default action that the user can perform on this data. |
int |
labelRes
A string resource identifier (in the package's resources) of this match's label. |
int |
match
The system's evaluation of how well the activity matches the IntentFilter. |
CharSequence |
nonLocalizedLabel
The actual string retrieve from labelRes or null if none was provided. |
int |
preferredOrder
Order of result according to the user's preference. |
int |
priority
The declared priority of this match. |
ServiceInfo |
serviceInfo
The service that corresponds to this resolution match, if this resolution is for a service. |
int |
specificIndex
Only set when returned by PackageManager.queryIntentActivityOptions(android.content.ComponentName, android.content.Intent[], android.content.Intent, int), this tells you
which of the given specific intents this result came from. |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
ResolveInfo()
|
|
| Method Summary | |
|---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
void |
dump(Printer pw,
String prefix)
|
int |
getIconResource()
Return the icon resource identifier to use for this match. |
Drawable |
loadIcon(PackageManager pm)
Retrieve the current graphical icon associated with this resolution. |
CharSequence |
loadLabel(PackageManager pm)
Retrieve the current textual label associated with this resolution. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
void |
writeToParcel(Parcel dest,
int parcelableFlags)
Flatten this object in to a Parcel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ActivityInfo activityInfo
public ServiceInfo serviceInfo
public IntentFilter filter
public int priority
public int preferredOrder
public int match
IntentFilter.MATCH_CATEGORY_MASK
and IntentFiler.MATCH_ADJUSTMENT_MASK.
public int specificIndex
PackageManager.queryIntentActivityOptions(android.content.ComponentName, android.content.Intent[], android.content.Intent, int), this tells you
which of the given specific intents this result came from. 0 is the
first in the list, < 0 means it came from the generic Intent query.
public boolean isDefault
public int labelRes
public CharSequence nonLocalizedLabel
public int icon
public static final Parcelable.Creator<ResolveInfo> CREATOR
| Constructor Detail |
|---|
public ResolveInfo()
| Method Detail |
|---|
public CharSequence loadLabel(PackageManager pm)
pm - A PackageManager from which the label can be loaded; usually
the PackageManager from which you originally retrieved this item.
public Drawable loadIcon(PackageManager pm)
pm - A PackageManager from which the icon can be loaded; usually
the PackageManager from which you originally retrieved this item.
public final int getIconResource()
public void dump(Printer pw,
String prefix)
public String toString()
Object
toString in class Objectpublic int describeContents()
Parcelable
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int parcelableFlags)
Parcelable
writeToParcel in interface Parcelabledest - The Parcel in which the object should be written.parcelableFlags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||