|
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.PackageItemInfo
android.content.pm.ApplicationInfo
public class ApplicationInfo
Information you can retrieve about a particular application. This corresponds to information collected from the AndroidManifest.xml's <application> tag.
| Nested Class Summary | |
|---|---|
static class |
ApplicationInfo.DisplayNameComparator
|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
String |
className
Class implementing the Application object. |
static Parcelable.Creator<ApplicationInfo> |
CREATOR
|
String |
dataDir
Full path to a directory assigned to the package for its persistent data. |
int |
descriptionRes
A style resource identifier (in the package's resources) of the description of an application. |
boolean |
enabled
When false, indicates that all components within this application are considered disabled, regardless of their individually set enabled status. |
static int |
FLAG_ALLOW_CLEAR_USER_DATA
Value for flags: default value for the corresponding ActivityInfo flag. |
static int |
FLAG_ALLOW_TASK_REPARENTING
Value for flags: default value for the corresponding ActivityInfo flag. |
static int |
FLAG_DEBUGGABLE
Value for flags: set to true if this application would like to
allow debugging of its
code, even when installed on a non-development system. |
static int |
FLAG_FACTORY_TEST
Value for flags: set to true iif this application holds the
Manifest.permission.FACTORY_TEST permission and the
device is running in factory test mode. |
static int |
FLAG_HAS_CODE
Value for flags: set to true if this application has code
associated with it. |
static int |
FLAG_PERSISTENT
Value for flags: set to true if this application is persistent. |
static int |
FLAG_SYSTEM
Value for flags: if set, this application is installed in the
device's system image. |
int |
flags
Flags associated with the application. |
String |
manageSpaceActivityName
Class implementing the Application's manage space functionality. |
String |
permission
Optional name of a permission required to be able to access this application's components. |
String |
processName
The name of the process this application should run in. |
String |
publicSourceDir
Full path to the location of the publicly available parts of this package (i.e. |
String[] |
sharedLibraryFiles
Paths to all shared libraries this application is linked against. |
String |
sourceDir
Full path to the location of this package. |
String |
taskAffinity
Default task affinity of all activities in this application. |
int |
theme
A style resource identifier (in the package's resources) of the default visual theme of the application. |
int |
uid
The kernel user-ID that has been assigned to this application; currently this is not a unique ID (multiple applications can have the same uid). |
| Fields inherited from class android.content.pm.PackageItemInfo |
|---|
icon, labelRes, metaData, name, nonLocalizedLabel, packageName |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
ApplicationInfo()
|
|
ApplicationInfo(ApplicationInfo orig)
|
|
| Method Summary | |
|---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
void |
dump(Printer pw,
String prefix)
|
CharSequence |
loadDescription(PackageManager pm)
Retrieve the textual description of the application. |
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 android.content.pm.PackageItemInfo |
|---|
dumpBack, dumpFront, loadIcon, loadLabel, loadXmlMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String taskAffinity
ActivityInfo.taskAffinity for more information. This comes
from the "taskAffinity" attribute.
public String permission
public String processName
public String className
public int descriptionRes
public int theme
public String manageSpaceActivityName
public static final int FLAG_SYSTEM
flags: if set, this application is installed in the
device's system image.
public static final int FLAG_DEBUGGABLE
flags: set to true if this application would like to
allow debugging of its
code, even when installed on a non-development system. Comes
from android:debuggable of the <application> tag.
public static final int FLAG_HAS_CODE
flags: set to true if this application has code
associated with it. Comes
from android:hasCode of the <application> tag.
public static final int FLAG_PERSISTENT
flags: set to true if this application is persistent.
Comes from android:persistent of the <application> tag.
public static final int FLAG_FACTORY_TEST
flags: set to true iif this application holds the
Manifest.permission.FACTORY_TEST permission and the
device is running in factory test mode.
public static final int FLAG_ALLOW_TASK_REPARENTING
flags: default value for the corresponding ActivityInfo flag.
Comes from android:allowTaskReparenting of the <application> tag.
public static final int FLAG_ALLOW_CLEAR_USER_DATA
flags: default value for the corresponding ActivityInfo flag.
Comes from android:allowClearUserData of the <application> tag.
public int flags
FLAG_SYSTEM, FLAG_DEBUGGABLE, FLAG_HAS_CODE,
FLAG_PERSISTENT, FLAG_FACTORY_TEST, and
FLAG_ALLOW_TASK_REPARENTING
FLAG_ALLOW_CLEAR_USER_DATA.
public String sourceDir
public String publicSourceDir
public String[] sharedLibraryFiles
PackageManager.GET_SHARED_LIBRARY_FILES flag was used when retrieving
the structure.
public String dataDir
public int uid
public boolean enabled
public static final Parcelable.Creator<ApplicationInfo> CREATOR
| Constructor Detail |
|---|
public ApplicationInfo()
public ApplicationInfo(ApplicationInfo orig)
| Method Detail |
|---|
public void dump(Printer pw,
String prefix)
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 ParcelablewriteToParcel in class PackageItemInfodest - 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.public CharSequence loadDescription(PackageManager pm)
pm - A PackageManager from which the label can be loaded; usually
the PackageManager from which you originally retrieved this item.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||