java.lang.Object | |
↳ | android.content.pm.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 Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ResolveInfo.DisplayNameComparator |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creator<ResolveInfo> | CREATOR |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
activityInfo | The activity that corresponds to this resolution match, if this resolution is for an activity. | ||||||||||
filter | The IntentFilter that was matched for this ResolveInfo. | ||||||||||
icon | A drawable resource identifier (in the package's resources) of this match's icon. | ||||||||||
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. | ||||||||||
labelRes | A string resource identifier (in the package's resources) of this match's label. | ||||||||||
match | The system's evaluation of how well the activity matches the IntentFilter. | ||||||||||
nonLocalizedLabel | The actual string retrieve from labelRes or null if none was provided. | ||||||||||
preferredOrder | Order of result according to the user's preference. | ||||||||||
priority | The declared priority of this match. | ||||||||||
resolvePackageName | Optional -- if non-null, the labelRes and icon
resources will be loaded from this package, rather than the one
containing the resolved component. |
||||||||||
serviceInfo | The service that corresponds to this resolution match, if this resolution is for a service. | ||||||||||
specificIndex | Only set when returned by
queryIntentActivityOptions(ComponentName, Intent[], Intent, int) , this tells you
which of the given specific intents this result came from. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Return the icon resource identifier to use for this match.
| |||||||||||
Retrieve the current graphical icon associated with this resolution.
| |||||||||||
Retrieve the current textual label associated with this resolution.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface android.os.Parcelable
|
The activity that corresponds to this resolution match, if this resolution is for an activity. One and only one of this and serviceInfo must be non-null.
The IntentFilter that was matched for this ResolveInfo.
A drawable resource identifier (in the package's resources) of this match's icon. From the "icon" attribute or, if not set, 0.
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.
A string resource identifier (in the package's resources) of this match's label. From the "label" attribute or, if not set, 0.
The system's evaluation of how well the activity matches the
IntentFilter. This is a match constant, a combination of
IntentFilter.MATCH_CATEGORY_MASK
and IntentFiler.MATCH_ADJUSTMENT_MASK
.
The actual string retrieve from labelRes or null if none was provided.
Order of result according to the user's preference. If the user has not set a preference for this result, the value is 0; higher values are a higher priority.
The declared priority of this match. Comes from the "priority" attribute or, if not set, defaults to 0. Higher values are a higher priority.
The service that corresponds to this resolution match, if this resolution is for a service. One and only one of this and activityInfo must be non-null.
Only set when returned by
queryIntentActivityOptions(ComponentName, Intent[], 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.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return the icon resource identifier to use for this match. If the match defines an icon, that is used; else if the activity defines an icon, that is used; else, the application icon is used.
Retrieve the current graphical icon associated with this resolution. 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 resolution. 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. |
---|
Returns a string containing a concise, human-readable description of this
object. Subclasses are encouraged to override this method and provide an
implementation that takes into account the object's type and data. The
default implementation simply concatenates the class name, the '@' sign
and a hexadecimal representation of the object's hashCode()
,
that is, it is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
parcelableFlags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|