|
Build 1.0_r1 | ||||||||
| 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 |
| 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 |
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 launchMode attribute. |
static int |
LAUNCH_SINGLE_INSTANCE
Constant corresponding to singleInstance in
the launchMode attribute. |
static int |
LAUNCH_SINGLE_TASK
Constant corresponding to singleTask in
the launchMode attribute. |
static int |
LAUNCH_SINGLE_TOP
Constant corresponding to singleTop in
the 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 screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_LANDSCAPE
Constant corresponding to landscape in
the screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_NOSENSOR
Constant corresponding to sensor in
the screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_PORTRAIT
Constant corresponding to portrait in
the screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_SENSOR
Constant corresponding to sensor in
the screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_UNSPECIFIED
Constant corresponding to unspecified in
the screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_USER
Constant corresponding to user in
the 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)
|
| 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 launchMode attribute.
public static final int LAUNCH_SINGLE_TOP
singleTop in
the launchMode attribute.
public static final int LAUNCH_SINGLE_TASK
singleTask in
the launchMode attribute.
public static final int LAUNCH_SINGLE_INSTANCE
singleInstance in
the launchMode attribute.
public int launchMode
public String permission
public String taskAffinity
public String targetActivity
public static final int FLAG_MULTIPROCESS
public static final int FLAG_FINISH_ON_TASK_LAUNCH
public static final int FLAG_CLEAR_TASK_ON_LAUNCH
public static final int FLAG_ALWAYS_RETAIN_TASK_STATE
public static final int FLAG_STATE_NOT_NEEDED
public static final int FLAG_EXCLUDE_FROM_RECENTS
public static final int FLAG_ALLOW_TASK_REPARENTING
public int flags
public static final int SCREEN_ORIENTATION_UNSPECIFIED
unspecified in
the screenOrientation attribute.
public static final int SCREEN_ORIENTATION_LANDSCAPE
landscape in
the screenOrientation attribute.
public static final int SCREEN_ORIENTATION_PORTRAIT
portrait in
the screenOrientation attribute.
public static final int SCREEN_ORIENTATION_USER
user in
the screenOrientation attribute.
public static final int SCREEN_ORIENTATION_BEHIND
behind in
the screenOrientation attribute.
public static final int SCREEN_ORIENTATION_SENSOR
sensor in
the screenOrientation attribute.
public static final int SCREEN_ORIENTATION_NOSENSOR
sensor in
the screenOrientation attribute.
public int screenOrientation
public static final int CONFIG_MCC
public static final int CONFIG_MNC
public static final int CONFIG_LOCALE
public static final int CONFIG_TOUCHSCREEN
public static final int CONFIG_KEYBOARD
public static final int CONFIG_KEYBOARD_HIDDEN
public static final int CONFIG_NAVIGATION
public static final int CONFIG_ORIENTATION
public static final int CONFIG_FONT_SCALE
public int configChanges
public static final Parcelable.Creator 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()
toString in class Objectpublic int describeContents()
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int parcelableFlags)
writeToParcel in interface ParcelablewriteToParcel in class ComponentInfo
|
Build 1.0_r1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||