English | Site Directory

Android - An Open Handset Alliance Project

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  CREATOR       

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      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      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      ServiceInfo[]  services  Array of all <service> tags included in <application>, or null if there were none. 

Public Constructors

          PackageInfo()

Public Methods

        String  toString()
Answers a string containing a concise, human-readable description of the receiver.
        void  writeToParcel(Parcel dest)
Methods inherited from class java.lang.Object
Methods inherited from interface android.os.Parcelable

Details

Constants

public static final Creator 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 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 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 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 Constructors

public PackageInfo()

Public Methods

public String toString()

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

public void writeToParcel(Parcel dest)

Build m5-rc15g - 14 May 2008 12:50