Package android.content.pm
Class PackageInfo
- java.lang.Object
-
- android.content.pm.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<PackageInfo>CREATORStringoverlayTargetWhat package, if any, this package will overlay.StringpackageNameThe name of this package.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description PackageInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()Describe the kinds of special objects contained in this Parcelable's marshalled representation.StringtoString()Returns a string containing a concise, human-readable description of this object.voidwriteToParcel(Parcel dest, int parcelableFlags)Flatten this object in to a Parcel.
-
-
-
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.
-
CREATOR
public static final Parcelable.Creator<PackageInfo> CREATOR
-
-
Method Detail
-
toString
public String toString()
Description copied from class:ObjectReturns 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
toStringmethod if you intend implementing your owntoStringmethod.
-
describeContents
public int describeContents()
Description copied from interface:ParcelableDescribe the kinds of special objects contained in this Parcelable's marshalled representation.- Specified by:
describeContentsin interfaceParcelable- 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:ParcelableFlatten this object in to a Parcel.- Specified by:
writeToParcelin interfaceParcelable- Parameters:
dest- The Parcel in which the object should be written.parcelableFlags- Additional flags about how the object should be written. May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE.
-
-