public class ActivityInfo extends ComponentInfo implements Parcelable
Modifier and Type | Class and Description |
---|---|
static interface |
ActivityInfo.Config |
static interface |
ActivityInfo.ScreenOrientation |
static class |
ActivityInfo.WindowLayout
Contains information about position and size of the activity on the display.
|
PackageItemInfo.DisplayNameComparator
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static int |
CONFIG_DENSITY
Bit in
configChanges that indicates that the activity
can itself handle density changes. |
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 or navigation being hidden/exposed. |
static int |
CONFIG_LAYOUT_DIRECTION
Bit in
configChanges that indicates that the activity
can itself handle the change to layout direction. |
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_NATIVE_BITS |
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_SCREEN_LAYOUT
Bit in
configChanges that indicates that the activity
can itself handle changes to the screen layout. |
static int |
CONFIG_SCREEN_SIZE
Bit in
configChanges that indicates that the activity
can itself handle the screen size. |
static int |
CONFIG_SMALLEST_SCREEN_SIZE
Bit in
configChanges that indicates that the activity
can itself handle the smallest screen size. |
static int |
CONFIG_TOUCHSCREEN
Bit in
configChanges that indicates that the activity
can itself handle changes to the touchscreen type. |
static int |
CONFIG_UI_MODE
Bit in
configChanges that indicates that the activity
can itself handle the ui mode. |
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 |
DOCUMENT_LAUNCH_ALWAYS
Constant corresponding to
always in
the android.R.attr#documentLaunchMode attribute. |
static int |
DOCUMENT_LAUNCH_INTO_EXISTING
Constant corresponding to
intoExisting in
the android.R.attr#documentLaunchMode attribute. |
static int |
DOCUMENT_LAUNCH_NEVER
Constant corresponding to
never in
the android.R.attr#documentLaunchMode attribute. |
static int |
DOCUMENT_LAUNCH_NONE
Constant corresponding to
none in
the android.R.attr#documentLaunchMode attribute. |
int |
documentLaunchMode
The document launch mode style requested by the activity.
|
static int |
FLAG_ALLOW_EMBEDDED |
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_FOCUSABLE
Bit in
flags indicating if the activity is always focusable regardless of if it is
in a task/stack whose activities are normally not focusable. |
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_AUTO_REMOVE_FROM_RECENTS
Bit in
flags indicating that tasks started with this activity are to be
removed from the recent list of tasks when the last activity in the task is finished. |
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_ENABLE_VR_MODE
Bit in
flags indicating that this activity should be run with VR mode enabled. |
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_CLOSE_SYSTEM_DIALOGS
Bit in
flags indicating that, when a request to close system
windows happens, this activity is finished. |
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_HARDWARE_ACCELERATED
Value for
flags : true when the application's rendering should
be hardware accelerated. |
static int |
FLAG_IMMERSIVE
Bit in
flags corresponding to an immersive activity
that wishes not to be interrupted by notifications. |
static int |
FLAG_MULTIPROCESS
Bit in
flags indicating whether this activity is able to
run in multiple processes. |
static int |
FLAG_NO_HISTORY
Bit in
flags indicating that, when the user navigates away
from an activity, it should be finished. |
static int |
FLAG_RELINQUISH_TASK_IDENTITY
Bit in
flags : If set, a task rooted at this activity will have its
baseIntent replaced by the activity immediately above this. |
static int |
FLAG_RESUME_WHILE_PAUSING
Bit in
flags indicating that this activity can start is creation/resume
while the previous activity is still pausing. |
static int |
FLAG_SHOW_FOR_ALL_USERS
Value for
flags : true when the application can be displayed for all users
regardless of if the user of the application is the current user. |
static int |
FLAG_SINGLE_USER
Bit in
flags : If set, a single instance of the receiver will
run for all users on the device. |
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. |
static int |
FLAG_SYSTEM_USER_ONLY |
int |
flags
Options that have been set in the activity declaration in the
manifest.
|
static int |
LAUNCH_MULTIPLE
Constant corresponding to
standard in
the android.R.attr#launchMode attribute. |
static int |
LAUNCH_SINGLE_INSTANCE
Constant corresponding to
singleInstance in
the android.R.attr#launchMode attribute. |
static int |
LAUNCH_SINGLE_TASK
Constant corresponding to
singleTask in
the android.R.attr#launchMode attribute. |
static int |
LAUNCH_SINGLE_TOP
Constant corresponding to
singleTop in
the android.R.attr#launchMode attribute. |
int |
launchMode
The launch mode style requested by the activity.
|
static int |
LOCK_TASK_LAUNCH_MODE_ALWAYS |
static int |
LOCK_TASK_LAUNCH_MODE_DEFAULT |
static int |
LOCK_TASK_LAUNCH_MODE_IF_WHITELISTED |
static int |
LOCK_TASK_LAUNCH_MODE_NEVER |
int |
lockTaskLaunchMode
Value indicating if the activity is to be locked at startup.
|
int |
maxRecents
The maximum number of tasks rooted at this activity that can be in the recent task list.
|
String |
parentActivityName
If defined, the activity named here is the logical parent of this activity.
|
String |
permission
Optional name of a permission required to be able to access this
Activity.
|
static int |
PERSIST_ACROSS_REBOOTS
Constant corresponding to
persistAcrossReboots in
the android.R.attr#persistableMode attribute. |
static int |
PERSIST_NEVER
Constant corresponding to
doNotPersist in
the android.R.attr#persistableMode attribute. |
static int |
PERSIST_ROOT_ONLY
Constant corresponding to
persistRootOnly in
the android.R.attr#persistableMode attribute. |
int |
persistableMode
Value indicating how this activity is to be persisted across
reboots for restoring in the Recents list.
|
String |
requestedVrComponent
Name of the VrListenerService component to run for this activity.
|
static int |
RESIZE_MODE_CROP_WINDOWS
Activity can not be resized and always occupies the fullscreen area with all windows cropped
to either the task or stack bounds.
|
static int |
RESIZE_MODE_FORCE_RESIZEABLE
Activity is does not support resizing, but we are forcing it to be resizeable.
|
static int |
RESIZE_MODE_RESIZEABLE
Activity is resizeable.
|
static int |
RESIZE_MODE_RESIZEABLE_AND_PIPABLE
Activity is resizeable and supported picture-in-picture mode.
|
static int |
RESIZE_MODE_UNRESIZEABLE
Activity can not be resized and always occupies the fullscreen area with all windows fully
visible.
|
int |
resizeMode
Value indicating if the resizing mode the activity supports.
|
static int |
SCREEN_ORIENTATION_BEHIND
Constant corresponding to
behind in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_FULL_SENSOR
Constant corresponding to
fullSensor in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_FULL_USER
Constant corresponding to
fullUser in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_LANDSCAPE
Constant corresponding to
landscape in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_LOCKED
Constant corresponding to
locked in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_NOSENSOR
Constant corresponding to
nosensor in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_PORTRAIT
Constant corresponding to
portrait in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_REVERSE_LANDSCAPE
Constant corresponding to
reverseLandscape in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_REVERSE_PORTRAIT
Constant corresponding to
reversePortrait in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_SENSOR
Constant corresponding to
sensor in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_SENSOR_LANDSCAPE
Constant corresponding to
sensorLandscape in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_SENSOR_PORTRAIT
Constant corresponding to
sensorPortrait in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_UNSPECIFIED
Constant corresponding to
unspecified in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_USER
Constant corresponding to
user in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_USER_LANDSCAPE
Constant corresponding to
userLandscape in
the android.R.attr#screenOrientation attribute. |
static int |
SCREEN_ORIENTATION_USER_PORTRAIT
Constant corresponding to
userPortrait in
the android.R.attr#screenOrientation attribute. |
int |
screenOrientation
The preferred screen orientation this activity would like to run in.
|
int |
softInputMode
The desired soft input mode for this activity's main window.
|
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.
|
static int |
UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW
Flag for use with
uiOptions . |
int |
uiOptions
The desired extra UI options for this activity and its main window.
|
ActivityInfo.WindowLayout |
windowLayout
Information about desired position and size of activity on the display when
it is first started.
|
applicationInfo, descriptionRes, directBootAware, enabled, encryptionAware, exported, processName
banner, DUMP_FLAG_ALL, DUMP_FLAG_APPLICATION, DUMP_FLAG_DETAILS, icon, labelRes, logo, metaData, name, nonLocalizedLabel, packageName, showUserIcon
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ActivityInfo() |
ActivityInfo(ActivityInfo orig) |
Modifier and Type | Method and Description |
---|---|
static int |
activityInfoConfigJavaToNative(int input)
Convert Java change bits to native.
|
static int |
activityInfoConfigNativeToJava(int input)
Convert native change bits to Java.
|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
dump(Printer pw,
String prefix) |
void |
dump(Printer pw,
String prefix,
int flags) |
int |
getRealConfigChanged() |
int |
getThemeResource()
Return the theme resource identifier to use for this activity.
|
static boolean |
isResizeableMode(int mode) |
static String |
lockTaskLaunchModeToString(int lockTaskLaunchMode) |
static String |
resizeModeToString(int mode) |
String |
toString()
Returns a string representation of the object.
|
void |
writeToParcel(Parcel dest,
int parcelableFlags)
Flatten this object in to a Parcel.
|
dumpBack, dumpFront, getApplicationInfo, getBannerResource, getComponentName, getIconResource, getLogoResource, isEnabled, loadDefaultBanner, loadDefaultIcon, loadDefaultLogo, loadLabel
loadBanner, loadIcon, loadLogo, loadSafeLabel, loadUnbadgedIcon, loadXmlMetaData
public int theme
public static final int LAUNCH_MULTIPLE
standard
in
the android.R.attr#launchMode
attribute.public static final int LAUNCH_SINGLE_TOP
singleTop
in
the android.R.attr#launchMode
attribute.public static final int LAUNCH_SINGLE_TASK
singleTask
in
the android.R.attr#launchMode
attribute.public static final int LAUNCH_SINGLE_INSTANCE
singleInstance
in
the android.R.attr#launchMode
attribute.public int launchMode
android.R.attr#launchMode
attribute, one of
LAUNCH_MULTIPLE
,
LAUNCH_SINGLE_TOP
, LAUNCH_SINGLE_TASK
, or
LAUNCH_SINGLE_INSTANCE
.public static final int DOCUMENT_LAUNCH_NONE
none
in
the android.R.attr#documentLaunchMode
attribute.public static final int DOCUMENT_LAUNCH_INTO_EXISTING
intoExisting
in
the android.R.attr#documentLaunchMode
attribute.public static final int DOCUMENT_LAUNCH_ALWAYS
always
in
the android.R.attr#documentLaunchMode
attribute.public static final int DOCUMENT_LAUNCH_NEVER
never
in
the android.R.attr#documentLaunchMode
attribute.public int documentLaunchMode
android.R.attr#documentLaunchMode
attribute, one of
DOCUMENT_LAUNCH_NONE
, DOCUMENT_LAUNCH_INTO_EXISTING
,
DOCUMENT_LAUNCH_ALWAYS
.
Modes DOCUMENT_LAUNCH_ALWAYS
and DOCUMENT_LAUNCH_INTO_EXISTING are equivalent to Intent.FLAG_ACTIVITY_NEW_DOCUMENT
with and without Intent.FLAG_ACTIVITY_MULTIPLE_TASK
respectively.
public static final int PERSIST_ROOT_ONLY
persistRootOnly
in
the android.R.attr#persistableMode
attribute.public static final int PERSIST_NEVER
doNotPersist
in
the android.R.attr#persistableMode
attribute.public static final int PERSIST_ACROSS_REBOOTS
persistAcrossReboots
in
the android.R.attr#persistableMode
attribute.public int persistableMode
android.R.attr#persistableMode
public int maxRecents
android.R.attr#maxRecents
.public String permission
public String taskAffinity
android.R.attr#taskAffinity
attribute.public String targetActivity
public static final int RESIZE_MODE_UNRESIZEABLE
public static final int RESIZE_MODE_CROP_WINDOWS
public static final int RESIZE_MODE_RESIZEABLE
public static final int RESIZE_MODE_RESIZEABLE_AND_PIPABLE
public static final int RESIZE_MODE_FORCE_RESIZEABLE
public int resizeMode
android.R.attr#resizeableActivity
.public String requestedVrComponent
android.R.attr#enableVrMode
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
android.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
android.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
android.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
android.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
android.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
android.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
android.R.attr#allowTaskReparenting
attribute.public static final int FLAG_NO_HISTORY
flags
indicating that, when the user navigates away
from an activity, it should be finished.
Set from the
android.R.attr#noHistory
attribute.public static final int FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS
flags
indicating that, when a request to close system
windows happens, this activity is finished.
Set from the
android.R.attr#finishOnCloseSystemDialogs
attribute.public static final int FLAG_HARDWARE_ACCELERATED
flags
: true when the application's rendering should
be hardware accelerated.public static final int FLAG_SHOW_FOR_ALL_USERS
flags
: true when the application can be displayed for all users
regardless of if the user of the application is the current user. Set from the
android.R.attr#showForAllUsers
attribute.public static final int FLAG_IMMERSIVE
flags
corresponding to an immersive activity
that wishes not to be interrupted by notifications.
Applications that hide the system notification bar with
WindowManager.LayoutParams.FLAG_FULLSCREEN
may still be interrupted by high-priority notifications; for example, an
incoming phone call may use
fullScreenIntent
to present a full-screen in-call activity to the user, pausing the
current activity as a side-effect. An activity with
FLAG_IMMERSIVE
set, however, will not be interrupted; the
notification may be shown in some other way (such as a small floating
"toast" window).
Note that this flag will always reflect the Activity's
android:immersive
manifest definition, even if the Activity's
immersive state is changed at runtime via
Activity.setImmersive(boolean)
.public static final int FLAG_RELINQUISH_TASK_IDENTITY
flags
: If set, a task rooted at this activity will have its
baseIntent replaced by the activity immediately above this. Each activity may further
relinquish its identity to the activity above it using this flag. Set from the
android.R.attr#relinquishTaskIdentity
attribute.public static final int FLAG_AUTO_REMOVE_FROM_RECENTS
flags
indicating that tasks started with this activity are to be
removed from the recent list of tasks when the last activity in the task is finished.
Corresponds to android.R.attr#autoRemoveFromRecents
public static final int FLAG_RESUME_WHILE_PAUSING
flags
indicating that this activity can start is creation/resume
while the previous activity is still pausing. Corresponds to
android.R.attr#resumeWhilePausing
public static final int FLAG_ENABLE_VR_MODE
flags
indicating that this activity should be run with VR mode enabled.
android.app.Activity#setVrMode(boolean)
.public static final int FLAG_ALWAYS_FOCUSABLE
flags
indicating if the activity is always focusable regardless of if it is
in a task/stack whose activities are normally not focusable.
See android.R.attr#alwaysFocusable.public static final int FLAG_SYSTEM_USER_ONLY
public static final int FLAG_SINGLE_USER
flags
: If set, a single instance of the receiver will
run for all users on the device. Set from the
android.R.attr#singleUser
attribute. Note that this flag is
only relevant for ActivityInfo structures that are describing receiver
components; it is not applied to activities.public static final int FLAG_ALLOW_EMBEDDED
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
, FLAG_NO_HISTORY
,
FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS
,
FLAG_HARDWARE_ACCELERATED
, FLAG_SINGLE_USER
.public static final int SCREEN_ORIENTATION_UNSPECIFIED
unspecified
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_LANDSCAPE
landscape
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_PORTRAIT
portrait
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_USER
user
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_BEHIND
behind
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_SENSOR
sensor
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_NOSENSOR
nosensor
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_SENSOR_LANDSCAPE
sensorLandscape
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_SENSOR_PORTRAIT
sensorPortrait
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_REVERSE_LANDSCAPE
reverseLandscape
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_REVERSE_PORTRAIT
reversePortrait
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_FULL_SENSOR
fullSensor
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_USER_LANDSCAPE
userLandscape
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_USER_PORTRAIT
userPortrait
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_FULL_USER
fullUser
in
the android.R.attr#screenOrientation
attribute.public static final int SCREEN_ORIENTATION_LOCKED
locked
in
the android.R.attr#screenOrientation
attribute.public int screenOrientation
android.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
,
SCREEN_ORIENTATION_SENSOR_LANDSCAPE
,
SCREEN_ORIENTATION_SENSOR_PORTRAIT
,
SCREEN_ORIENTATION_REVERSE_LANDSCAPE
,
SCREEN_ORIENTATION_REVERSE_PORTRAIT
,
SCREEN_ORIENTATION_FULL_SENSOR
,
SCREEN_ORIENTATION_USER_LANDSCAPE
,
SCREEN_ORIENTATION_USER_PORTRAIT
,
SCREEN_ORIENTATION_FULL_USER
,
SCREEN_ORIENTATION_LOCKED
,public static final int CONFIG_MCC
configChanges
that indicates that the activity
can itself handle changes to the IMSI MCC. Set from the
android.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
android.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
android.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
android.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
android.R.attr#configChanges
attribute.public static final int CONFIG_KEYBOARD_HIDDEN
configChanges
that indicates that the activity
can itself handle changes to the keyboard or navigation being hidden/exposed.
Note that inspite of the name, this applies to the changes to any
hidden states: keyboard or navigation.
Set from the android.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
android.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
android.R.attr#configChanges
attribute.public static final int CONFIG_SCREEN_LAYOUT
configChanges
that indicates that the activity
can itself handle changes to the screen layout. Set from the
android.R.attr#configChanges
attribute.public static final int CONFIG_UI_MODE
configChanges
that indicates that the activity
can itself handle the ui mode. Set from the
android.R.attr#configChanges
attribute.public static final int CONFIG_SCREEN_SIZE
configChanges
that indicates that the activity
can itself handle the screen size. Set from the
android.R.attr#configChanges
attribute. This will be
set by default for applications that target an earlier version
than Build.VERSION_CODES.HONEYCOMB_MR2
...
however, you will not see the bit set here becomes some
applications incorrectly compare configChanges
against
an absolute value rather than correctly masking out the bits
they are interested in. Please don't do that, thanks.public static final int CONFIG_SMALLEST_SCREEN_SIZE
configChanges
that indicates that the activity
can itself handle the smallest screen size. Set from the
android.R.attr#configChanges
attribute. This will be
set by default for applications that target an earlier version
than Build.VERSION_CODES.HONEYCOMB_MR2
...
however, you will not see the bit set here becomes some
applications incorrectly compare configChanges
against
an absolute value rather than correctly masking out the bits
they are interested in. Please don't do that, thanks.public static final int CONFIG_DENSITY
configChanges
that indicates that the activity
can itself handle density changes. Set from the
android.R.attr#configChanges
attribute.public static final int CONFIG_LAYOUT_DIRECTION
configChanges
that indicates that the activity
can itself handle the change to layout direction. Set from the
android.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
android.R.attr#configChanges
attribute. This is
not a core resource configuration, but a higher-level value, so its
constant starts at the high bits.public static int[] CONFIG_NATIVE_BITS
public int configChanges
CONFIG_FONT_SCALE
,
CONFIG_MCC
, CONFIG_MNC
,
CONFIG_LOCALE
, CONFIG_TOUCHSCREEN
,
CONFIG_KEYBOARD
, CONFIG_NAVIGATION
,
CONFIG_ORIENTATION
, CONFIG_SCREEN_LAYOUT
,
CONFIG_DENSITY
, and CONFIG_LAYOUT_DIRECTION
.
Set from the android.R.attr#configChanges
attribute.public int softInputMode
android.R.attr#windowSoftInputMode
attribute
in the activity's manifest. May be any of the same values allowed
for WindowManager.LayoutParams.softInputMode
. If 0 (unspecified),
the mode from the theme will be used.public int uiOptions
android.R.attr#uiOptions
attribute in the
activity's manifest.public static final int UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW
uiOptions
.
Indicates that the action bar should put all action items in a separate bar when
the screen is narrow.
This value corresponds to "splitActionBarWhenNarrow" for the uiOptions
XML
attribute.
public String parentActivityName
public static final int LOCK_TASK_LAUNCH_MODE_DEFAULT
public static final int LOCK_TASK_LAUNCH_MODE_NEVER
public static final int LOCK_TASK_LAUNCH_MODE_ALWAYS
public static final int LOCK_TASK_LAUNCH_MODE_IF_WHITELISTED
public int lockTaskLaunchMode
android.R.attr#lockTaskMode
.public ActivityInfo.WindowLayout windowLayout
public static final Parcelable.Creator<ActivityInfo> CREATOR
public ActivityInfo()
public ActivityInfo(ActivityInfo orig)
public static int activityInfoConfigJavaToNative(int input)
public static int activityInfoConfigNativeToJava(int input)
public int getRealConfigChanged()
public static final String lockTaskLaunchModeToString(int lockTaskLaunchMode)
public final int getThemeResource()
public static boolean isResizeableMode(int mode)
public static String resizeModeToString(int mode)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int parcelableFlags)
Parcelable
writeToParcel
in interface Parcelable
writeToParcel
in class ComponentInfo
dest
- 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
.