IT. Expert System.

Android Reference

LabeledIntent


android.content.pm

Class LabeledIntent

    • Constructor Detail

      • LabeledIntent

        public LabeledIntent(Intent origIntent,
                     String sourcePackage,
                     int labelRes,
                     int icon)
        Create a labeled intent from the given intent, supplying the label and icon resources for it.
        Parameters:
        origIntent - The original Intent to copy.
        sourcePackage - The package in which the label and icon live.
        labelRes - Resource containing the label, or 0 if none.
        icon - Resource containing the icon, or 0 if none.
      • LabeledIntent

        public LabeledIntent(Intent origIntent,
                     String sourcePackage,
                     CharSequence nonLocalizedLabel,
                     int icon)
        Create a labeled intent from the given intent, supplying a textual label and icon resource for it.
        Parameters:
        origIntent - The original Intent to copy.
        sourcePackage - The package in which the label and icon live.
        nonLocalizedLabel - Concrete text to use for the label.
        icon - Resource containing the icon, or 0 if none.
      • LabeledIntent

        public LabeledIntent(String sourcePackage,
                     int labelRes,
                     int icon)
        Create a labeled intent with no intent data but supplying the label and icon resources for it.
        Parameters:
        sourcePackage - The package in which the label and icon live.
        labelRes - Resource containing the label, or 0 if none.
        icon - Resource containing the icon, or 0 if none.
      • LabeledIntent

        public LabeledIntent(String sourcePackage,
                     CharSequence nonLocalizedLabel,
                     int icon)
        Create a labeled intent with no intent data but supplying a textual label and icon resource for it.
        Parameters:
        sourcePackage - The package in which the label and icon live.
        nonLocalizedLabel - Concrete text to use for the label.
        icon - Resource containing the icon, or 0 if none.
      • LabeledIntent

        protected LabeledIntent(Parcel in)
    • Method Detail

      • getSourcePackage

        public String getSourcePackage()
        Return the name of the package holding label and icon resources.
      • getLabelResource

        public int getLabelResource()
        Return any resource identifier that has been given for the label text.
      • getNonLocalizedLabel

        public CharSequence getNonLocalizedLabel()
        Return any concrete text that has been given for the label text.
      • getIconResource

        public int getIconResource()
        Return any resource identifier that has been given for the label icon.
      • loadLabel

        public CharSequence loadLabel(PackageManager pm)
        Retrieve the label associated with this object. If the object does not have a label, null will be returned, in which case you will probably want to load the label from the underlying resolved info for the Intent.
      • loadIcon

        public Drawable loadIcon(PackageManager pm)
        Retrieve the icon associated with this object. If the object does not have a icon, null will be returned, in which case you will probably want to load the icon from the underlying resolved info for the Intent.


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: 3754 / 159204725. Delta: 0.05025 с