IT. Expert System.

Android Reference

ResolveInfo


android.content.pm

Class ResolveInfo

  • All Implemented Interfaces:
    Parcelable


    public class ResolveInfo
    extends Object
    implements Parcelable
    Information that is returned from resolving an intent against an IntentFilter. This partially corresponds to information collected from the AndroidManifest.xml's <intent> tags.
    • Field Detail

      • activityInfo

        public ActivityInfo activityInfo
        The activity or broadcast receiver that corresponds to this resolution match, if this resolution is for an activity or broadcast receiver. One and only one of this and serviceInfo must be non-null.
      • serviceInfo

        public ServiceInfo serviceInfo
        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.
      • filter

        public IntentFilter filter
        The IntentFilter that was matched for this ResolveInfo.
      • priority

        public int 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.
      • preferredOrder

        public int preferredOrder
        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.
      • isDefault

        public 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.
      • labelRes

        public int labelRes
        A string resource identifier (in the package's resources) of this match's label. From the "label" attribute or, if not set, 0.
      • nonLocalizedLabel

        public CharSequence nonLocalizedLabel
        The actual string retrieve from labelRes or null if none was provided.
      • icon

        public int icon
        A drawable resource identifier (in the package's resources) of this match's icon. From the "icon" attribute or, if not set, 0.
      • resolvePackageName

        public String resolvePackageName
        Optional -- if non-null, the labelRes and icon resources will be loaded from this package, rather than the one containing the resolved component.
      • system

        public boolean system
    • Constructor Detail

      • ResolveInfo

        public ResolveInfo()
    • Method Detail

      • loadLabel

        public CharSequence loadLabel(PackageManager pm)
        Retrieve the current textual label associated with this resolution. 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 resolutions's label. If the item does not have a label, its name is returned.
      • loadIcon

        public Drawable loadIcon(PackageManager pm)
        Retrieve the current graphical icon associated with this resolution. 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 resolution's icon. If the item does not have an icon, the default activity icon is returned.
      • getIconResource

        public final int getIconResource()
        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.
        Returns:
        The icon associated with this match.
      • toString

        public String toString()
        Description copied from class: Object
        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 is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.
      • writeToParcel

        public void writeToParcel(Parcel dest,
                         int parcelableFlags)
        Description copied from interface: Parcelable
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface Parcelable
        Parameters:
        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.PARCELABLE_WRITE_RETURN_VALUE.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 363 / . Delta: 0.02692 с