Lists configuration changes that the activity will handle itself. When a configuration
+change occurs at runtime, the activity is shut down and restarted by default, but declaring a
+configuration with this attribute will prevent the activity from being restarted. Instead, the
+activity remains running and its {@link android.app.Activity#onConfigurationChanged
+onConfigurationChanged()} method is called.
+
+Note: Using this attribute should be
+avoided and used only as a last-resort. Please read Handling Runtime Changes for more
+information about how to properly handle a restart due to a configuration change.
-Any or all of the following strings can be used to set this attribute. Values are
+Any or all of the following strings are valid values for this attribute. Multiple values are
separated by '{@code |}' — for example, "{@code locale|navigation|orientation}".
@@ -168,39 +175,48 @@ separated by '{@code |}' — for example, "{@code locale|navigation|orientat
Description |
| "{@code mcc}" |
- The IMSI mobile country code (MCC) has changed —
- that is, a SIM has been detected and updated the MCC. |
+ The IMSI mobile country code (MCC) has changed —
+ a SIM has been detected and updated the MCC. |
| "{@code mnc}" |
- The IMSI mobile network code (MNC) has changed —
- that is, a SIM has been detected and updated the MNC. |
+ The IMSI mobile network code (MNC) has changed —
+ a SIM has been detected and updated the MNC. |
| "{@code locale}" |
- The locale has changed — for example, the user has selected a new
+ | The locale has changed — the user has selected a new
language that text should be displayed in. |
| "{@code touchscreen}" |
The touchscreen has changed. (This should never normally happen.) |
| "{@code keyboard}" |
- The keyboard type has changed — for example, the user has
+ | The keyboard type has changed — for example, the user has
plugged in an external keyboard. |
| "{@code keyboardHidden}" |
- The keyboard accessibility has changed — for example, the
- user has slid the keyboard out to expose it. |
+ The keyboard accessibility has changed — for example, the
+ user has revealed the hardware keyboard. |
| "{@code navigation}" |
- The navigation type has changed. (This should never normally happen.) |
+ The navigation type (trackball/dpad) has changed. (This should never normally happen.) |
- | "{@code orientation}" |
- The screen orientation has changed — that is, the user has rotated
+ | "{@code orientation}" |
+ The screen orientation has changed — the user has rotated
the device. |
+
+ | "{@code screenLayout}" |
+ The screen layout has changed — this might be caused by a
+ different display being activated. |
| "{@code fontScale}" |
- The font scaling factor has changed — that is, the user has selected
+ | The font scaling factor has changed — the user has selected
a new global font size. |
-
+
+ | "{@code uiMode}" |
+ The user interface mode has changed — this can be caused when the user places the
+device into a desk/car dock or when the the night mode changes. See {@link
+android.app.UiModeManager}. Introduced in API Level 8. |
+
--
cgit v1.2.3-59-g8ed1b