diff options
Diffstat (limited to 'docs/html/guide/topics')
-rw-r--r-- | docs/html/guide/topics/manifest/compatible-screens-element.jd | 32 | ||||
-rw-r--r-- | docs/html/guide/topics/resources/providing-resources.jd | 6 |
2 files changed, 35 insertions, 3 deletions
diff --git a/docs/html/guide/topics/manifest/compatible-screens-element.jd b/docs/html/guide/topics/manifest/compatible-screens-element.jd index 8669874..5c89869 100644 --- a/docs/html/guide/topics/manifest/compatible-screens-element.jd +++ b/docs/html/guide/topics/manifest/compatible-screens-element.jd @@ -101,6 +101,38 @@ href="{@docRoot}guide/practices/screens_support.html#range">Supporting Multiple </dd> </dl> </dd> + +<dt>example</dt> +<dd> +<p>If your application is compatible with only small and normal screens, regardless +of screen density, then you must specify eight different {@code <screen>} elements, +because each screen size has four different density configurations. You must declare each one of +these; any combination of size and density that you do <em>not</em> specify is considered a screen +configuration with which your application is <em>not</em> compatible. Here's what the manifest +entry looks like if your application is compatible with only small and normal screens:</p> + +<pre> +<manifest ... > + ... + <compatible-screens> + <!-- all small size screens --> + <screen android:screenSize="small" android:screenDensity="ldpi" /> + <screen android:screenSize="small" android:screenDensity="mdpi" /> + <screen android:screenSize="small" android:screenDensity="hdpi" /> + <screen android:screenSize="small" android:screenDensity="xhdpi" /> + <!-- all normal size screens --> + <screen android:screenSize="normal" android:screenDensity="ldpi" /> + <screen android:screenSize="normal" android:screenDensity="mdpi" /> + <screen android:screenSize="normal" android:screenDensity="hdpi" /> + <screen android:screenSize="normal" android:screenDensity="xhdpi" /> + </compatible-screens> + <application ... > + ... + <application> +</manifest> +</pre> +</dd> + <dt>introduced in:</dt> <dd>API Level 9</dd> <dt>see also:</dt> diff --git a/docs/html/guide/topics/resources/providing-resources.jd b/docs/html/guide/topics/resources/providing-resources.jd index 60030f0..1583dee 100644 --- a/docs/html/guide/topics/resources/providing-resources.jd +++ b/docs/html/guide/topics/resources/providing-resources.jd @@ -596,7 +596,7 @@ orientation" described above.</p> </tr> --> <tr id="VersionQualifier"> - <td>System Version (API Level)</td> + <td>Platform Version (API Level)</td> <td>Examples:<br/> <code>v3</code><br/> <code>v4</code><br/> @@ -609,7 +609,7 @@ orientation" described above.</p> href="{@docRoot}guide/appendix/api-levels.html">Android API Levels</a> document for more information about these values.</p> <p class="caution"><strong>Caution:</strong> Android 1.5 and 1.6 only match resources -with this qualifier when it exactly matches the system version. See the section below about <a +with this qualifier when it exactly matches the platform version. See the section below about <a href="#KnownIssues">Known Issues</a> for more information.</p> </td> </tr> @@ -975,7 +975,7 @@ href="accessing-resources.html">Accessing Resources</a>.</p> <p>The correct behavior is for the system to match resources marked with a <a href="#VersionQualifier">version qualifier</a> equal -to or less than the system version on the device, but on Android 1.5 and 1.6, (API Level 3 and 4), +to or less than the platform version on the device, but on Android 1.5 and 1.6, (API Level 3 and 4), there is a bug that causes the system to match resources marked with the version qualifier only when it exactly matches the version on the device.</p> |