summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2009-09-10 13:54:48 -0700
committerScott Main <smain@google.com>2009-09-10 17:39:37 -0700
commitd56760ce1ecb949a258e1c667eb46446e2575269 (patch)
tree95de80c40f4da15af3363fe48845f98bff6194e1 /docs
parentc2d3fc2cc1db63e7bb9421878f2959a3936325a9 (diff)
downloadframeworks_base-d56760ce1ecb949a258e1c667eb46446e2575269.zip
frameworks_base-d56760ce1ecb949a258e1c667eb46446e2575269.tar.gz
frameworks_base-d56760ce1ecb949a258e1c667eb46446e2575269.tar.bz2
docs only.
revise the maxSdkVersion description Change-Id: Id71f685fad5d08abc5c07af35edf49f0aa8b0914
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/topics/manifest/uses-sdk-element.jd33
1 files changed, 15 insertions, 18 deletions
diff --git a/docs/html/guide/topics/manifest/uses-sdk-element.jd b/docs/html/guide/topics/manifest/uses-sdk-element.jd
index ee8d03d..aa1e8ae 100644
--- a/docs/html/guide/topics/manifest/uses-sdk-element.jd
+++ b/docs/html/guide/topics/manifest/uses-sdk-element.jd
@@ -36,30 +36,27 @@ and minor versions).</p>
<dd>
<dl class="attr">
<dt><a name="min"></a>{@code android:minSdkVersion}</dt>
- <dd>An integer designating the minimum level of the Android API that's required
- for the application to run.
+ <dd>An integer designating the minimum API Level required
+ for the application to run. The Android system will prevent the user from installing
+ the application if the system's API Level is lower than the value specified in
+ this attribute. You should always declare this attribute.
- <p>Prior to installing an application, the Android system checks the value of this
- attribute and allows the installation only if it
- is less than or equal to the API Level used by the system itself.</p>
-
- <p>If you do not declare this attribute, then a value of "1" is assumed, which
+ <p class="caution"><strong>Caution:</strong>
+ If you do not declare this attribute, then a value of "1" is assumed, which
indicates that your application is compatible with all versions of Android. If your
- application is <em>not</em> universally compatible (for instance if it uses APIs
- introduced in Android 1.5) and you have not declared the proper <code>minSdkVersion</code>,
- then when installed on a system with a lower API Level, the application
- will crash during runtime. For this reason, be certain to declare the appropriate API Level
+ application is <em>not</em> compatible with all versions (for instance, it uses APIs
+ introduced in API Level 3) and you have not declared the proper <code>minSdkVersion</code>,
+ then when installed on a system with an API Level less than 3, the application will crash
+ during runtime when attempting to access the unavailable APIs. For this reason,
+ be certain to declare the appropriate API Level
in the <code>minSdkVersion</code> attribute.</p>
</dd>
<dt><a name="max"></a>{@code android:maxSdkVersion}</dt>
- <dd>An integer designating the maximum level of the Android API that the application is
- compatible with. You can use this to ensure your application is filtered out
- of later versions of the platform when you know you have incompatibility with them.</p>
-
- <p>Prior to installing an application, the Android system checks the value of this
- attribute and allows the installation only it
- is greater than or equal to the API Level used by the system itself.</p>
+ <dd>An integer designating the maximum API Level on which the application is
+ designed to run. The Android system will prevent the user from installing the
+ application if the system's API Level is higher than the value specified
+ in this attribute.
<p>Introduced in: API Level 4</p>
</dd>