|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.content.pm.PackageInfo
public class PackageInfo
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 |
|---|
public String packageName
public int versionCode
versionCode
attribute.
public String versionName
versionName
attribute.
public ApplicationInfo applicationInfo
public int[] gids
PackageManager.GET_GIDS was set.
public ActivityInfo[] activities
<activity> tags included under <application>,
or null if there were none. This is only filled in if the flag
PackageManager.GET_ACTIVITIES was set.
public ActivityInfo[] receivers
<receiver> tags included under <application>,
or null if there were none. This is only filled in if the flag
PackageManager.GET_RECEIVERS was set.
public ServiceInfo[] services
<service> tags included under <application>,
or null if there were none. This is only filled in if the flag
PackageManager.GET_SERVICES was set.
public ProviderInfo[] providers
<provider> tags included under <application>,
or null if there were none. This is only filled in if the flag
PackageManager.GET_PROVIDERS was set.
public InstrumentationInfo[] instrumentation
<instrumentation> tags included under <manifest>,
or null if there were none. This is only filled in if the flag
PackageManager.GET_INSTRUMENTATION was set.
public PermissionInfo[] permissions
<permission> tags included under <manifest>,
or null if there were none. This is only filled in if the flag
PackageManager.GET_PERMISSIONS was set.
public String[] requestedPermissions
<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.
public Signature[] signatures
PackageManager.GET_SIGNATURES was set.
public static final Parcelable.Creator<PackageInfo> CREATOR
| Constructor Detail |
|---|
public PackageInfo()
| Method Detail |
|---|
public String toString()
Object
toString in class Objectpublic int describeContents()
Parcelable
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int parcelableFlags)
Parcelable
writeToParcel in interface Parcelabledest - 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) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||