IT. Expert System.

Android Reference

ComponentInfo


android.content.pm

Class ComponentInfo

  • Direct Known Subclasses:
    ActivityInfo, ProviderInfo, ServiceInfo


    public class ComponentInfo
    extends PackageItemInfo
    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.
    • Field Detail

      • applicationInfo

        public ApplicationInfo applicationInfo
        Global information about the application/package this component is a part of.
      • processName

        public String processName
        The name of the process this component should run in. From the "android:process" attribute or, if not set, the same as applicationInfo.processName.
      • descriptionRes

        public int descriptionRes
        A string resource identifier (in the package's resources) containing a user-readable description of the component. From the "description" attribute or, if not set, 0.
      • enabled

        public boolean enabled
        Indicates whether or not this component may be instantiated. Note that this value can be overriden by the one in its parent ApplicationInfo.
      • exported

        public boolean exported
        Set to true if this component is available for use by other applications. Comes from android:exported of the <activity>, <receiver>, <service>, or <provider> tag.
    • Constructor Detail

      • ComponentInfo

        public ComponentInfo()
      • ComponentInfo

        protected ComponentInfo(Parcel source)
    • Method Detail

      • loadLabel

        public CharSequence loadLabel(PackageManager pm)
        Description copied from class: PackageItemInfo
        Retrieve the current textual label associated with this item. This will call back on the given PackageManager to load the label from the application.
        Overrides:
        loadLabel in class PackageItemInfo
        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 item's label. If the item does not have a label, its name is returned.
      • isEnabled

        public boolean isEnabled()
        Return whether this component and its enclosing application are enabled.
      • getIconResource

        public final int getIconResource()
        Return the icon resource identifier to use for this component. If the component defines an icon, that is used; else, the application icon is used.
        Returns:
        The icon associated with this component.
      • loadDefaultIcon

        protected Drawable loadDefaultIcon(PackageManager pm)
        Description copied from class: PackageItemInfo
        Retrieve the default graphical icon associated with this item.
        Overrides:
        loadDefaultIcon in class PackageItemInfo
        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 item's default icon such as the default activity icon.
      • loadDefaultLogo

        protected Drawable loadDefaultLogo(PackageManager pm)
        Description copied from class: PackageItemInfo
        Retrieve the default graphical logo associated with this item.
        Overrides:
        loadDefaultLogo in class PackageItemInfo
        Parameters:
        pm - A PackageManager from which the logo can be loaded; usually the PackageManager from which you originally retrieved this item.
        Returns:
        Returns a Drawable containing the item's default logo or null if no default logo is available.
      • getApplicationInfo

        protected ApplicationInfo getApplicationInfo()
        Description copied from class: PackageItemInfo
        Get the ApplicationInfo for the application to which this item belongs, if available, otherwise returns null.
        Overrides:
        getApplicationInfo in class PackageItemInfo
        Returns:
        Returns the ApplicationInfo of this item, or null if not known.


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: 125 / . Delta: 0.04374 с