Build 1.0_r1(from source)

android.content.pm
Class PackageInfo

java.lang.Object
  extended by 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.Creator<T>
 
Field Summary
 ActivityInfo[] activities
          Array of all <activity> tags included under <application>, or null if there were none.
 ApplicationInfo applicationInfo
          Information collected from the <application> tag, or null if there was none.
static Parcelable.Creator<PackageInfo> CREATOR
           
 int[] gids
          All kernel group-IDs that have been assigned to this package.
 InstrumentationInfo[] instrumentation
          Array of all <instrumentation> tags included under <manifest>, or null if there were none.
 String packageName
          The name of this package.
 PermissionInfo[] permissions
          Array of all <permission> tags included under <manifest>, or null if there were none.
 ProviderInfo[] providers
          Array of all <provider> tags included under <application>, or null if there were none.
 ActivityInfo[] receivers
          Array of all <receiver> tags included under <application>, or null if there were none.
 String[] requestedPermissions
          Array of all <uses-permission> tags included under <manifest>, or null if there were none.
 ServiceInfo[] services
          Array of all <service> tags included under <application>, or null if there were none.
 Signature[] signatures
          Array of all signatures read from the package file.
 int versionCode
          The version number of this package, as specified by the <manifest> tag's versionCode attribute.
 String versionName
          The version name of this package, as specified by the <manifest> tag's versionName attribute.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
PackageInfo()
           
 
Method Summary
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 void writeToParcel(Parcel dest, int parcelableFlags)
          Flatten this object in to a Parcel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.


applicationInfo

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


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.


instrumentation

public InstrumentationInfo[] instrumentation
Array of all <instrumentation> tags included under <manifest>, or null if there were none. This is only filled in if the flag PackageManager.GET_INSTRUMENTATION was set.


permissions

public PermissionInfo[] permissions
Array of all <permission> tags included under <manifest>, or null if there were none. This is only filled in if the flag PackageManager.GET_PERMISSIONS 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.


signatures

public Signature[] signatures
Array of all signatures read from the package file. This is only filled in if the flag PackageManager.GET_SIGNATURES was set.


CREATOR

public static final Parcelable.Creator<PackageInfo> CREATOR
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 the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature