IT. Expert System.

Android Reference

PackageInfo


android.content.pm

Class PackageInfo

  • All Implemented Interfaces:
    Parcelable


    public class PackageInfo
    extends Object
    implements Parcelable
    Overall information about the contents of a package. This corresponds to all of the information collected from AndroidManifest.xml.
    • Field Detail

      • packageName

        public String packageName
        The name of this package. From the <manifest> tag's "name" attribute.
      • versionCode

        public int versionCode
        The version number of this package, as specified by the <manifest> tag's versionCode attribute.
      • versionName

        public String versionName
        The version name of this package, as specified by the <manifest> tag's versionName attribute.
      • sharedUserId

        public String sharedUserId
        The shared user ID name of this package, as specified by the <manifest> tag's sharedUserId attribute.
      • sharedUserLabel

        public int sharedUserLabel
        The shared user ID label of this package, as specified by the <manifest> tag's sharedUserLabel attribute.
      • applicationInfo

        public ApplicationInfo applicationInfo
        Information collected from the <application> tag, or null if there was none.
      • firstInstallTime

        public long firstInstallTime
        The time at which the app was first installed. Units are as per System.currentTimeMillis().
      • lastUpdateTime

        public long lastUpdateTime
        The time at which the app was last updated. Units are as per System.currentTimeMillis().
      • gids

        public int[] gids
        All kernel group-IDs that have been assigned to this package. This is only filled in if the flag PackageManager.GET_GIDS was set.
      • activities

        public ActivityInfo[] activities
        Array of all <activity> tags included under <application>, or null if there were none. This is only filled in if the flag PackageManager.GET_ACTIVITIES was set.
      • receivers

        public ActivityInfo[] receivers
        Array of all <receiver> tags included under <application>, or null if there were none. This is only filled in if the flag PackageManager.GET_RECEIVERS was set.
      • services

        public ServiceInfo[] services
        Array of all <service> tags included under <application>, or null if there were none. This is only filled in if the flag PackageManager.GET_SERVICES was set.
      • providers

        public ProviderInfo[] providers
        Array of all <provider> tags included under <application>, or null if there were none. This is only filled in if the flag PackageManager.GET_PROVIDERS was set.
      • requestedPermissions

        public String[] requestedPermissions
        Array of all <uses-permission> tags included under <manifest>, or null if there were none. This is only filled in if the flag PackageManager.GET_PERMISSIONS was set. This list includes all permissions requested, even those that were not granted or known by the system at install time.
      • REQUESTED_PERMISSION_REQUIRED

        public static final int REQUESTED_PERMISSION_REQUIRED
        Flag for requestedPermissionsFlags: the requested permission is required for the application to run; the user can not optionally disable it. Currently all permissions are required.
        See Also:
        Constant Field Values
      • configPreferences

        public ConfigurationInfo[] configPreferences
        Application specified preferred configuration <uses-configuration> tags included under <manifest>, or null if there were none. This is only filled in if the flag PackageManager.GET_CONFIGURATIONS was set.
      • reqFeatures

        public FeatureInfo[] reqFeatures
        The features that this application has said it requires.
      • INSTALL_LOCATION_UNSPECIFIED

        public static final int INSTALL_LOCATION_UNSPECIFIED
        Constant corresponding to auto in the android.R.attr#installLocation attribute.
        See Also:
        Constant Field Values
      • INSTALL_LOCATION_AUTO

        public static final int INSTALL_LOCATION_AUTO
        Constant corresponding to auto in the android.R.attr#installLocation attribute.
        See Also:
        Constant Field Values
      • INSTALL_LOCATION_INTERNAL_ONLY

        public static final int INSTALL_LOCATION_INTERNAL_ONLY
        Constant corresponding to internalOnly in the android.R.attr#installLocation attribute.
        See Also:
        Constant Field Values
      • INSTALL_LOCATION_PREFER_EXTERNAL

        public static final int INSTALL_LOCATION_PREFER_EXTERNAL
        Constant corresponding to preferExternal in the android.R.attr#installLocation attribute.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PackageInfo

        public PackageInfo()
    • Method Detail

      • 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: 702 / . Delta: 0.03096 с