|
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.ComponentInfo
android.content.pm.ActivityInfo
public class ActivityInfo
Information you can retrieve about a particular application activity or receiver. This corresponds to information collected from the AndroidManifest.xml's <activity> and <receiver> tags.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.content.pm.PackageItemInfo |
|---|
PackageItemInfo.DisplayNameComparator |
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static int |
CONFIG_FONT_SCALE
Bit in configChanges that indicates that the activity
can itself handle changes to the font scaling factor. |
static int |
CONFIG_KEYBOARD
Bit in configChanges that indicates that the activity
can itself handle changes to the keyboard type. |
static int |
CONFIG_KEYBOARD_HIDDEN
Bit in configChanges that indicates that the activity
can itself handle changes to the keyboard being hidden/exposed. |
static int |
CONFIG_LOCALE
Bit in configChanges that indicates that the activity
can itself handle changes to the locale. |
static int |
CONFIG_MCC
Bit in configChanges that indicates that the activity
can itself handle changes to the IMSI MCC. |
static int |
CONFIG_MNC
Bit in configChanges that indicates that the activity
can itself handle changes to the IMSI MNC. |
static int |
CONFIG_NAVIGATION
Bit in configChanges that indicates that the activity
can itself handle changes to the navigation type. |
static int |
CONFIG_ORIENTATION
Bit in configChanges that indicates that the activity
can itself handle changes to the screen orientation. |
static int |
CONFIG_TOUCHSCREEN
Bit in configChanges that indicates that the activity
can itself handle changes to the touchscreen type. |
int |
configChanges
Bit mask of kinds of configuration changes that this activity can handle itself (without being restarted by the system). |
static Parcelable.Creator<ActivityInfo> |
CREATOR
|
static int |
FLAG_ALLOW_TASK_REPARENTING
Bit in flags that indicates that the activity can be moved
between tasks based on its task affinity. |
static int |
FLAG_ALWAYS_RETAIN_TASK_STATE
Bit in flags indicating that, when the activity is the root
of a task, that task's stack should never be cleared when it is
relaunched from home. |
static int |
FLAG_CLEAR_TASK_ON_LAUNCH
Bit in flags indicating that, when the activity is the root
of a task, that task's stack should be cleared each time the user
re-launches it from home. |
static int |
FLAG_EXCLUDE_FROM_RECENTS
Bit in flags that indicates that the activity should not
appear in the list of recently launched activities. |
static int |
FLAG_FINISH_ON_TASK_LAUNCH
Bit in flags indicating that, when the activity's task is
relaunched from home, this activity should be finished. |
static int |
FLAG_MULTIPROCESS
Bit in flags indicating whether this activity is able to
run in multiple processes. |
static int |
FLAG_STATE_NOT_NEEDED
Bit in flags indicating that the activity's state
is not required to be saved, so that if there is a failure the
activity will not be removed from the activity stack. |
int |
flags
Options that have been set in the activity declaration in the manifest: FLAG_MULTIPROCESS,
FLAG_FINISH_ON_TASK_LAUNCH, FLAG_CLEAR_TASK_ON_LAUNCH,
FLAG_ALWAYS_RETAIN_TASK_STATE,
FLAG_STATE_NOT_NEEDED, FLAG_EXCLUDE_FROM_RECENTS,
FLAG_ALLOW_TASK_REPARENTING. |
static int |
LAUNCH_MULTIPLE
Constant corresponding to standard in
the R.attr.launchMode attribute. |
static int |
LAUNCH_SINGLE_INSTANCE
Constant corresponding to singleInstance in
the R.attr.launchMode attribute. |
static int |
LAUNCH_SINGLE_TASK
Constant corresponding to singleTask in
the R.attr.launchMode attribute. |
static int |
LAUNCH_SINGLE_TOP
Constant corresponding to singleTop in
the R.attr.launchMode attribute. |
int |
launchMode
The launch mode style requested by the activity. |
String |
permission
Optional name of a permission required to be able to access this Activity. |
static int |
SCREEN_ORIENTATION_BEHIND
Constant corresponding to behind in
the R.attr.screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_LANDSCAPE
Constant corresponding to landscape in
the R.attr.screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_NOSENSOR
Constant corresponding to sensor in
the R.attr.screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_PORTRAIT
Constant corresponding to portrait in
the R.attr.screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_SENSOR
Constant corresponding to sensor in
the R.attr.screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_UNSPECIFIED
Constant corresponding to unspecified in
the R.attr.screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_USER
Constant corresponding to user in
the R.attr.screenOrientation attribute. |
int |
screenOrientation
The preferred screen orientation this activity would like to run in. |
String |
targetActivity
If this is an activity alias, this is the real activity class to run for it. |
String |
taskAffinity
The affinity this activity has for another task in the system. |
int |
theme
A style resource identifier (in the package's resources) of this activity's theme. |
| Fields inherited from class android.content.pm.ComponentInfo |
|---|
applicationInfo, enabled, exported, processName |
| 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 | |
|---|---|
ActivityInfo()
|
|
ActivityInfo(ActivityInfo orig)
|
|
| Method Summary | |
|---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
void |
dump(Printer pw,
String prefix)
|
int |
getThemeResource()
Return the theme resource identifier to use for this activity. |
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.ComponentInfo |
|---|
dumpBack, dumpFront, getIconResource, loadIcon, loadLabel |
| Methods inherited from class android.content.pm.PackageItemInfo |
|---|
loadXmlMetaData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int theme
public static final int LAUNCH_MULTIPLE
standard in
the R.attr.launchMode attribute.
public static final int LAUNCH_SINGLE_TOP
singleTop in
the R.attr.launchMode attribute.
public static final int LAUNCH_SINGLE_TASK
singleTask in
the R.attr.launchMode attribute.
public static final int LAUNCH_SINGLE_INSTANCE
singleInstance in
the R.attr.launchMode attribute.
public int launchMode
R.attr.launchMode attribute, one of
LAUNCH_MULTIPLE,
LAUNCH_SINGLE_TOP, LAUNCH_SINGLE_TASK, or
LAUNCH_SINGLE_INSTANCE.
public String permission
public String taskAffinity
R.attr.taskAffinity attribute.
public String targetActivity
public static final int FLAG_MULTIPROCESS
flags indicating whether this activity is able to
run in multiple processes. If
true, the system may instantiate it in the some process as the
process starting it in order to conserve resources. If false, the
default, it always runs in ComponentInfo.processName. Set from the
R.attr.multiprocess attribute.
public static final int FLAG_FINISH_ON_TASK_LAUNCH
flags indicating that, when the activity's task is
relaunched from home, this activity should be finished.
Set from the
R.attr.finishOnTaskLaunch attribute.
public static final int FLAG_CLEAR_TASK_ON_LAUNCH
flags indicating that, when the activity is the root
of a task, that task's stack should be cleared each time the user
re-launches it from home. As a result, the user will always
return to the original activity at the top of the task.
This flag only applies to activities that
are used to start the root of a new task. Set from the
R.attr.clearTaskOnLaunch attribute.
public static final int FLAG_ALWAYS_RETAIN_TASK_STATE
flags indicating that, when the activity is the root
of a task, that task's stack should never be cleared when it is
relaunched from home. Set from the
R.attr.alwaysRetainTaskState attribute.
public static final int FLAG_STATE_NOT_NEEDED
flags indicating that the activity's state
is not required to be saved, so that if there is a failure the
activity will not be removed from the activity stack. Set from the
R.attr.stateNotNeeded attribute.
public static final int FLAG_EXCLUDE_FROM_RECENTS
flags that indicates that the activity should not
appear in the list of recently launched activities. Set from the
R.attr.excludeFromRecents attribute.
public static final int FLAG_ALLOW_TASK_REPARENTING
flags that indicates that the activity can be moved
between tasks based on its task affinity. Set from the
R.attr.allowTaskReparenting attribute.
public int flags
FLAG_MULTIPROCESS,
FLAG_FINISH_ON_TASK_LAUNCH, FLAG_CLEAR_TASK_ON_LAUNCH,
FLAG_ALWAYS_RETAIN_TASK_STATE,
FLAG_STATE_NOT_NEEDED, FLAG_EXCLUDE_FROM_RECENTS,
FLAG_ALLOW_TASK_REPARENTING.
public static final int SCREEN_ORIENTATION_UNSPECIFIED
unspecified in
the R.attr.screenOrientation attribute.
public static final int SCREEN_ORIENTATION_LANDSCAPE
landscape in
the R.attr.screenOrientation attribute.
public static final int SCREEN_ORIENTATION_PORTRAIT
portrait in
the R.attr.screenOrientation attribute.
public static final int SCREEN_ORIENTATION_USER
user in
the R.attr.screenOrientation attribute.
public static final int SCREEN_ORIENTATION_BEHIND
behind in
the R.attr.screenOrientation attribute.
public static final int SCREEN_ORIENTATION_SENSOR
sensor in
the R.attr.screenOrientation attribute.
public static final int SCREEN_ORIENTATION_NOSENSOR
sensor in
the R.attr.screenOrientation attribute.
public int screenOrientation
R.attr.screenOrientation attribute, one of
SCREEN_ORIENTATION_UNSPECIFIED,
SCREEN_ORIENTATION_LANDSCAPE,
SCREEN_ORIENTATION_PORTRAIT,
SCREEN_ORIENTATION_USER,
SCREEN_ORIENTATION_BEHIND,
SCREEN_ORIENTATION_SENSOR,
SCREEN_ORIENTATION_NOSENSOR.
public static final int CONFIG_MCC
configChanges that indicates that the activity
can itself handle changes to the IMSI MCC. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_MNC
configChanges that indicates that the activity
can itself handle changes to the IMSI MNC. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_LOCALE
configChanges that indicates that the activity
can itself handle changes to the locale. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_TOUCHSCREEN
configChanges that indicates that the activity
can itself handle changes to the touchscreen type. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_KEYBOARD
configChanges that indicates that the activity
can itself handle changes to the keyboard type. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_KEYBOARD_HIDDEN
configChanges that indicates that the activity
can itself handle changes to the keyboard being hidden/exposed.
Set from the R.attr.configChanges attribute.
public static final int CONFIG_NAVIGATION
configChanges that indicates that the activity
can itself handle changes to the navigation type. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_ORIENTATION
configChanges that indicates that the activity
can itself handle changes to the screen orientation. Set from the
R.attr.configChanges attribute.
public static final int CONFIG_FONT_SCALE
configChanges that indicates that the activity
can itself handle changes to the font scaling factor. Set from the
R.attr.configChanges attribute. This is
not a core resource configutation, but a higher-level value, so its
constant starts at the high bits.
public int configChanges
CONFIG_FONT_SCALE,
CONFIG_MCC, CONFIG_MNC,
CONFIG_LOCALE, CONFIG_TOUCHSCREEN,
CONFIG_KEYBOARD, CONFIG_NAVIGATION, and
CONFIG_ORIENTATION. Set from the
R.attr.configChanges attribute.
public static final Parcelable.Creator<ActivityInfo> CREATOR
| Constructor Detail |
|---|
public ActivityInfo()
public ActivityInfo(ActivityInfo orig)
| Method Detail |
|---|
public final int getThemeResource()
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 ComponentInfodest - 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 | |||||||||