From 8da119148fb8c20ec49917a6c106a0f731227238 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 12 Aug 2011 12:22:18 -0700 Subject: cherrypick from hc-mr2 Change-Id: I76de309e70026720d30772ff5b428f7aefc8de4c docs: add docs about "screenSize" configuration changes Change-Id: I74ca6126d1f61f30014c17c8bd2316c6d05c8aeb --- .../html/guide/topics/manifest/activity-element.jd | 37 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) (limited to 'docs/html/guide/topics/manifest') diff --git a/docs/html/guide/topics/manifest/activity-element.jd b/docs/html/guide/topics/manifest/activity-element.jd index 5a9313e..02a8a8e 100644 --- a/docs/html/guide/topics/manifest/activity-element.jd +++ b/docs/html/guide/topics/manifest/activity-element.jd @@ -10,8 +10,8 @@ parent.link=manifest-intro.html android:clearTaskOnLaunch=["true" | "false"] android:configChanges=["mcc", "mnc", "locale", "touchscreen", "keyboard", "keyboardHidden", - "navigation", "orientation", "screenLayout", - "fontScale", "uiMode"] + "navigation", "screenLayout", "fontScale", "uiMode", + "orientation", "screenSize", "smallestScreenSize"] android:enabled=["true" | "false"] android:excludeFromRecents=["true" | "false"] android:exported=["true" | "false"] @@ -205,10 +205,6 @@ separated by '{@code |}' — for example, "{@code locale|navigation|orientat "{@code navigation}" The navigation type (trackball/dpad) has changed. (This should never normally happen.) - "{@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. @@ -221,7 +217,34 @@ separated by '{@code |}' — for example, "{@code locale|navigation|orientat 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. - + + "{@code orientation}" + The screen orientation has changed — the user has rotated the device. +

Note: If your application targets API level 13 or higher (as +declared by the {@code +minSdkVersion} and {@code +targetSdkVersion} attributes), then you should also declare the {@code "screenSize"} +configuration, because it also changes when a device switches between portrait and landscape +orientations.

+ + "{@code screenSize}" + The current available screen size has changed. This represents a change in the currently +available size, relative to the current aspect ratio, so will change when the user switches between +landscape and portrait. However, if your application targets API level 12 or lower, then your +activity always handles this configuration change itself (this configuration change does not restart +your activity, even when running on an Android 3.2 or higher device). +

Added in API level 13.

+ + "{@code smallestScreenSize}" + The physical screen size has changed. This represents a change in size regardless of +orientation, so will only change when the actual physical screen size has changed such as switching +to an external display. A change to this configuration corresponds to a change in the +smallestWidth configuration. However, if your application targets API level 12 or lower, then +your activity always handles this configuration change itself (this configuration change does not +restart your activity, even when running on an Android 3.2 or higher device). +

Added in API level 13.

+

-- cgit v1.1