diff options
author | Dirk Dougherty <ddougherty@google.com> | 2009-10-22 18:39:56 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-22 18:39:56 -0700 |
commit | 3bf0210dca67e534bf8d344575abf32e653c8407 (patch) | |
tree | 5ee3454fbc71edef1bb1e825298a390b3b1ff2e3 /docs/html/guide | |
parent | 44dd4732184ce01b5fa0c7ed09347d27de60595b (diff) | |
parent | f0d9c0000858f3e48bcd1efec75f2dff1cbc6ed5 (diff) | |
download | frameworks_base-3bf0210dca67e534bf8d344575abf32e653c8407.zip frameworks_base-3bf0210dca67e534bf8d344575abf32e653c8407.tar.gz frameworks_base-3bf0210dca67e534bf8d344575abf32e653c8407.tar.bz2 |
am f0d9c000: am 86dc4d31: am 61c29c29: Merge change Ieeb0b251 into eclair-sdk
Merge commit 'f0d9c0000858f3e48bcd1efec75f2dff1cbc6ed5' into eclair-mr2-plus-aosp
* commit 'f0d9c0000858f3e48bcd1efec75f2dff1cbc6ed5':
doc change: incorporate comments on SDK docs and structure.
Diffstat (limited to 'docs/html/guide')
-rw-r--r-- | docs/html/guide/appendix/api-levels.jd | 3 | ||||
-rw-r--r-- | docs/html/guide/practices/screens_support.jd | 66 | ||||
-rwxr-xr-x | docs/html/guide/tutorials/localization/index.jd | 5 |
3 files changed, 42 insertions, 32 deletions
diff --git a/docs/html/guide/appendix/api-levels.jd b/docs/html/guide/appendix/api-levels.jd index 3f3b6c6..b3b6371 100644 --- a/docs/html/guide/appendix/api-levels.jd +++ b/docs/html/guide/appendix/api-levels.jd @@ -119,7 +119,8 @@ on which the application is able to run. The default value is "1".</li> <li><code>android:targetSdkVersion</code> — Specifies the API Level on which the application is designed to run. In some cases, this allows the application to use manifest elements or behaviors defined in the target -API Level, rather than those in the minimum API Level.</li> +API Level, rather than being restricted to using only those defined +for the minimum API Level.</li> <li><code>android:maxSdkVersion</code> — Specifies the maximum API Level on which the application is able to run.</li> </ul> diff --git a/docs/html/guide/practices/screens_support.jd b/docs/html/guide/practices/screens_support.jd index 09347a6..1d16d88 100644 --- a/docs/html/guide/practices/screens_support.jd +++ b/docs/html/guide/practices/screens_support.jd @@ -61,9 +61,7 @@ earlier, you should read this document and consider how you may need to adapt your application for proper display on new devices that offer different screens and that are running Android 1.6 or later. In most cases, only minor adjustments are needed, however you should make sure to <a href="#testing">test your -application</a> on all of the new screens supported in Android 1.6. - -<!--See <a href="#migrating">Migrating</a> for strategies e you can continue using the previous API level and use target API level, or you can just compile. --></p> +application</a> on all supported screens. </p> <p>In particular, if you have an existing application that you would like to make available for users of devices with small screens (such as QVGA), please @@ -73,7 +71,11 @@ information about how to do that. </p> <h2 id="overview">Overview of Screens Support</h2> -<p>The sections below provide an overview of the Android platform's support for multiple screens, including an introduction to terms and concepts used in this document and in the API, a summary of the screen configurations that the platform supports, and an overview of the API and underlying screen-compatibility features.</p> +<p>The sections below provide an overview of the Android platform's support for +multiple screens, including an introduction to terms and concepts used in this +document and in the API, a summary of the screen configurations that the +platform supports, and an overview of the API and underlying +screen-compatibility features.</p> <h3>Terms and Concepts</h3> @@ -462,7 +464,7 @@ pixels</a> for more information. </p> <h3 id="attrs">Manifest attributes for screens support</h3> -<p> Android 1.6 introduces a new manifest element, +<p> Android 1.6 introduced a new manifest element, <a href="{@docRoot}guide/topics/manifest/supports-screens-element.html"><code><supports-screens></code></a>, whose attributes you can use to control the display of your application on different classes of device screens, as listed @@ -631,8 +633,8 @@ appropriate attributes to <code>false</code>. <h3 id="qualifiers">Resource directory qualifiers for screen size and density</h3> -<p>Android 1.6 supports new resource directory qualifiers for selecting -resources based on the characteristics of the screen on which your application +<p>Android supports resource directory qualifiers for controlling the selection +of resources based on the characteristics of the screen on which your application is running. You can use these qualifiers to provide size- and density-specific resources in your application. For more information about the generalized sizes and densities that correspond to the qualifiers, see <a href="#range">Table @@ -693,14 +695,14 @@ to the baseline screen configuration.</td> </tr> <tr> <td>Platform version</td> -<td><code>v4</code></td> -<td>Resources that are for use only on Android 1.6 (API Level 4) or higher -platform versions. If your application is designed to run on both Android 1.5 -(or lower) and Android 1.6 (and higher), you can use this qualifier to tag -resources that should be excluded when your application is running on Android -1.5 or earlier. Using this qualifier is necessary in some cases, if the older -platform is inadvertently loading resources from an Android 1.6 resources -directory. </td> +<td><nobr><code>v<api-level></code></nobr></td> +<td>Resources that are for use only on a specific API Level or higher. For +example, if your application is designed to run on both Android 1.5 (API Level +3) and Android 1.6 (API Level 4 and higher), you can use the <code>-v4</code> +qualifier to tag any resources that should be excluded when your application is +running on Android 1.5 (API Level 3). Using the version qualifier is necessary +in some cases, if the older platform is inadvertently loading resources from a +directory containing resources for a newer platform. </td> </tr> </table> @@ -975,8 +977,8 @@ Here's how to do that:</p> <code>android:minSdkVersion</code> attribute as it is. You <em>do not</em> need to increment the value of the attribute to support new devices and multiple screens. </li> - <li>Extend compatibility for Android 1.6 devices by adding a new attribute -— <code>android:targetSdkVersion</code> — to the + <li>Extend compatibility for Android 1.6 (and higher) devices by adding +a new attribute — <code>android:targetSdkVersion</code> — to the <code>uses-sdk</code> element. Set the value of the attribute to "<code>4</code>". This allows your application to "inherit" the platform's multiple screens support, even though it is technically using an earlier version @@ -988,11 +990,12 @@ later, this is where you will add them.</li> the Android 1.6 (API Level 4) library, rather than against the Android 1.5 (or earlier) library. You will not be able to compile your application against the older platform because of the new manifest attribute. </li> - <li>Set up AVDs for testing your application on Android 1.6. Create AVDs that -use the screen sizes and densities that you want to support. When you create the -AVDs, make sure to select the Android 1.6 platform as the system image to run. -For more information, see <a href="#testing">How to Test Your Application on -Multiple Screens</a>, below.</li> + <li>Set up AVDs for testing your application on Android 1.6 and higher +releases. Create AVDs that use the screen sizes and densities that you want to +support. When you create the AVDs, make sure to select the Android 1.6 or higher +platform as the system image to run. For more information, see <a +href="#testing">How to Test Your Application on Multiple Screens</a>, +below.</li> <li>Set up AVDs for testing your application on Android 1.5 (or earlier platform). You need AVDs running the older platforms you are targeting, so that you can test for compatibility and ensure that there are no functional @@ -1018,10 +1021,11 @@ qualifiers</a>. Qualifiers must be arranged in a proscribed order. See <a href="{@docRoot}guide/topics/resources/resources-i18n.html#AlternateResources"> Alternate Resources</a> for more information. </li> <li>Note that if you add size- or density-specific resource directories -tagged with any of the Android 1.6 qualifiers listed in this document, you -should make sure to also tag those directories with the <code>v4</code> -qualifier. This ensures that those resources will be ignored when the -application is run on Android 1.5 or lower platform versions.</p></li> +tagged with any of the resource qualifiers listed in this document, you should +make sure to also tag those directories with the <code>v<api-level></code> +qualifier (for example, <code>-v4</code>). This ensures that those resources +will be ignored when the application is run on Android 1.5 or lower platform +versions.</p></li> </ul> </li> <li>If your application does not offer support (such as custom layouts) for @@ -1074,14 +1078,20 @@ the defaults. For general information about working with AVDs, see <a href="{@docRoot}guide/developing/tools/avd.html">Android Virtual Devices</a>.</p> -<p>The Android 1.6 SDK includes these emulator skins, which represent the -primary screen configurations that your should test:</p> +<p>The Android 1.6 and higher platforms in the SDK include these emulator skins, +which represent the primary screen configurations that your should test:</p> <ul> <li> QVGA (240x320, low density, small screen) </li> <li> + WQVGA400 (240x400, low density, normal screen) + </li> + <li> + WQVGA432 (240x432, low density, normal screen) + </li> + <li> HVGA (320x480, medium density, normal screen) </li> <li> diff --git a/docs/html/guide/tutorials/localization/index.jd b/docs/html/guide/tutorials/localization/index.jd index d31eb10..eeade34 100755 --- a/docs/html/guide/tutorials/localization/index.jd +++ b/docs/html/guide/tutorials/localization/index.jd @@ -539,9 +539,8 @@ height="158" style="margin-left:15px"></p> <p><img src="{@docRoot}images/hello_l10n/using_custom_locale.png" alt="using custom locale"
width="512" height="299" style="margin-left:15px"></p>
-<p>For a list of supported locales, see the
-<a href="{@docRoot}sdk/android-{@sdkCurrentVersion}.html">Android
-Version Notes</a>.</p>
+<p>For a list of supported locales in a specific Android platform, see the
+associated notes in the "SDK" tab, under "Downloadable SDK Components."</p>
<p>Run the application for each of the expected locales, plus one unexpected
locale. Here are some of the results you should see:</p>
|