Fields Summary |
---|
public String | taskAffinityDefault task affinity of all activities in this application. See
{@link ActivityInfo#taskAffinity} for more information. This comes
from the "taskAffinity" attribute. |
public String | permissionOptional name of a permission required to be able to access this
application's components. From the "permission" attribute. |
public String | processNameThe name of the process this application should run in. From the
"process" attribute or, if not set, the same as
packageName. |
public String | classNameClass implementing the Application object. From the "class"
attribute. |
public int | descriptionResA style resource identifier (in the package's resources) of the
description of an application. From the "description" attribute
or, if not set, 0. |
public int | themeA style resource identifier (in the package's resources) of the
default visual theme of the application. From the "theme" attribute
or, if not set, 0. |
public String | manageSpaceActivityNameClass implementing the Application's manage space
functionality. From the "manageSpaceActivity"
attribute. This is an optional attribute and will be null if
application's dont specify it in their manifest |
public static final int | FLAG_SYSTEMValue for {@link #flags}: if set, this application is installed in the
device's system image. |
public static final int | FLAG_DEBUGGABLEValue for {@link #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 {@link android.R.styleable#AndroidManifestApplication_debuggable
android:debuggable} of the <application> tag. |
public static final int | FLAG_HAS_CODEValue for {@link #flags}: set to true if this application has code
associated with it. Comes
from {@link android.R.styleable#AndroidManifestApplication_hasCode
android:hasCode} of the <application> tag. |
public static final int | FLAG_PERSISTENTValue for {@link #flags}: set to true if this application is persistent.
Comes from {@link android.R.styleable#AndroidManifestApplication_persistent
android:persistent} of the <application> tag. |
public static final int | FLAG_FACTORY_TESTValue for {@link #flags}: set to true iif this application holds the
{@link android.Manifest.permission#FACTORY_TEST} permission and the
device is running in factory test mode. |
public static final int | FLAG_ALLOW_TASK_REPARENTINGValue for {@link #flags}: default value for the corresponding ActivityInfo flag.
Comes from {@link android.R.styleable#AndroidManifestApplication_allowTaskReparenting
android:allowTaskReparenting} of the <application> tag. |
public static final int | FLAG_ALLOW_CLEAR_USER_DATAValue for {@link #flags}: default value for the corresponding ActivityInfo flag.
Comes from {@link android.R.styleable#AndroidManifestApplication_allowClearUserData
android:allowClearUserData} of the <application> tag. |
public static final int | FLAG_UPDATED_SYSTEM_APPValue for {@link #flags}: default value for the corresponding ActivityInfo flag.
{@hide} |
public int | flagsFlags associated with the application. Any combination of
{@link #FLAG_SYSTEM}, {@link #FLAG_DEBUGGABLE}, {@link #FLAG_HAS_CODE},
{@link #FLAG_PERSISTENT}, {@link #FLAG_FACTORY_TEST}, and
{@link #FLAG_ALLOW_TASK_REPARENTING}
{@link #FLAG_ALLOW_CLEAR_USER_DATA}. |
public String | sourceDirFull path to the location of this package. |
public String | publicSourceDirFull path to the location of the publicly available parts of this package (i.e. the resources
and manifest). For non-forward-locked apps this will be the same as {@link #sourceDir). |
public String[] | sharedLibraryFilesPaths to all shared libraries this application is linked against. This
field is only set if the {@link PackageManager#GET_SHARED_LIBRARY_FILES
PackageManager.GET_SHARED_LIBRARY_FILES} flag was used when retrieving
the structure. |
public String | dataDirFull path to a directory assigned to the package for its persistent
data. |
public int | uidThe kernel user-ID that has been assigned to this application;
currently this is not a unique ID (multiple applications can have
the same uid). |
public boolean | enabledWhen false, indicates that all components within this application are
considered disabled, regardless of their individually set enabled status. |
public static final Parcelable.Creator | CREATOR |
Methods Summary |
---|
public int | describeContents()
return 0;
|
public void | dump(android.util.Printer pw, java.lang.String prefix)
super.dumpFront(pw, prefix);
pw.println(prefix + "className=" + className);
pw.println(prefix + "permission=" + permission
+ " uid=" + uid);
pw.println(prefix + "taskAffinity=" + taskAffinity);
pw.println(prefix + "theme=0x" + Integer.toHexString(theme));
pw.println(prefix + "flags=0x" + Integer.toHexString(flags)
+ " processName=" + processName);
pw.println(prefix + "sourceDir=" + sourceDir);
pw.println(prefix + "publicSourceDir=" + publicSourceDir);
pw.println(prefix + "sharedLibraryFiles=" + sharedLibraryFiles);
pw.println(prefix + "dataDir=" + dataDir);
pw.println(prefix + "enabled=" + enabled);
pw.println(prefix+"manageSpaceActivityName="+manageSpaceActivityName);
pw.println(prefix+"description=0x"+Integer.toHexString(descriptionRes));
super.dumpBack(pw, prefix);
|
public java.lang.CharSequence | loadDescription(PackageManager pm)Retrieve the textual description of the application. This
will call back on the given PackageManager to load the description from
the application.
if (descriptionRes != 0) {
CharSequence label = pm.getText(packageName, descriptionRes, null);
if (label != null) {
return label;
}
}
return null;
|
public java.lang.String | toString()
return "ApplicationInfo{"
+ Integer.toHexString(System.identityHashCode(this))
+ " " + packageName + "}";
|
public void | writeToParcel(android.os.Parcel dest, int parcelableFlags)
super.writeToParcel(dest, parcelableFlags);
dest.writeString(taskAffinity);
dest.writeString(permission);
dest.writeString(processName);
dest.writeString(className);
dest.writeInt(theme);
dest.writeInt(flags);
dest.writeString(sourceDir);
dest.writeString(publicSourceDir);
dest.writeStringArray(sharedLibraryFiles);
dest.writeString(dataDir);
dest.writeInt(uid);
dest.writeInt(enabled ? 1 : 0);
dest.writeString(manageSpaceActivityName);
dest.writeInt(descriptionRes);
|