Android
android.content.pm
public class

android.content.pm.PackageInfo

java.lang.Object
android.content.pm.PackageInfo Parcelable

Overall information about the contents of a package. This corresponds to all of the information collected from AndroidManifest.xml.

Summary

Constants

      Value  
Creator<PackageInfo CREATOR       
Constants inherited from interface android.os.Parcelable

Fields

public      ActivityInfo[]  activities  Array of all <activity> tags included in <application>, or null if there were none. 
public      ApplicationInfo  applicationInfo  Information collected from the <application> tag, or null if there was none. 
public      int[]  gids  All kernel group-IDs that have been assigned to this package. 
public      InstrumentationInfo[]  instrumentation  Array of all <instrumentation> tags included in <manifest>, or null if there were none. 
public      String  packageName  The name of this package. 
public      PermissionInfo[]  permissions  Array of all <PermissionInfo> tags included in <application>, or null if there were none. 
public      ProviderInfo[]  providers  Array of all <provider> tags included in <application>, or null if there were none. 
public      ActivityInfo[]  receivers  Array of all <receiver> tags included in <application>, or null if there were none. 
public      String[]  requestedPermissions   
public      ServiceInfo[]  services  Array of all <service> tags included in <application>, or null if there were none. 
public      Signature[]  signatures  Array of all signatures read from the package file. 

Public Constructors

            PackageInfo()

Public Methods

          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
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator<PackageInfo> CREATOR

Fields

public ActivityInfo[] activities

Array of all <activity> tags included in <application>, or null if there were none. This is only filled in if the flag GET_ACTIVITIES was set.

public ApplicationInfo applicationInfo

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

public int[] gids

All kernel group-IDs that have been assigned to this package.

public InstrumentationInfo[] instrumentation

Array of all <instrumentation> tags included in <manifest>, or null if there were none.

public String packageName

The name of this package. From the <manifest> tag's "name" attribute.

public PermissionInfo[] permissions

Array of all <PermissionInfo> tags included in <application>, or null if there were none. This is only filled in if the flag GET_PERMISSIONS was set.

public ProviderInfo[] providers

Array of all <provider> tags included in <application>, or null if there were none. This is only filled in if the flag GET_PROVIDERS was set.

public ActivityInfo[] receivers

Array of all <receiver> tags included in <application>, or null if there were none. This is only filled in if the flag GET_RECEIVERS was set.

public String[] requestedPermissions

public ServiceInfo[] services

Array of all <service> tags included in <application>, or null if there were none. This is only filled in if the flag GET_SERVICES was set.

public Signature[] signatures

Array of all signatures read from the package file.

Public Constructors

public PackageInfo()

Public Methods

public int describeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.

public void writeToParcel(Parcel dest, int parcelableFlags)

Flatten this object in to a Parcel.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48