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.
      • overlayTarget

        public String overlayTarget
        What package, if any, this package will overlay. Package name of target package, or null.
    • 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.