From 4e60d012c95f50ddd2a1ba6202e4fec3c9cfd3df Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 1 Sep 2009 16:17:36 -0700 Subject: docs only. add syntax samples for all attributes and revise targetSdkVersion information. Change-Id: I164da5870743be259e64827c36c4c5eed55fa2b0 --- docs/html/guide/topics/manifest/uses-sdk-element.jd | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'docs/html/guide/topics/manifest/uses-sdk-element.jd') diff --git a/docs/html/guide/topics/manifest/uses-sdk-element.jd b/docs/html/guide/topics/manifest/uses-sdk-element.jd index adcdc28..ee8d03d 100644 --- a/docs/html/guide/topics/manifest/uses-sdk-element.jd +++ b/docs/html/guide/topics/manifest/uses-sdk-element.jd @@ -3,7 +3,10 @@ page.title=<uses-sdk>
syntax:
-
<uses-sdk android:minSdkVersion="integer" />
+
+<uses-sdk android:minSdkVersion="integer" 
+          android:maxSdkVersion="integer"
+          android:targetSdkVersion="integer" />
contained in:
<manifest>
@@ -64,12 +67,16 @@ and minor versions).

{@code android:targetSdkVersion}
An integer designating the API Level that the application is targetting. -

With this attribute set, the application says that is is be able to run on +

With this attribute set, the application says that it is able to run on older versions (down to {@code minSdkVersion}), but was explicitly tested to work with the version specified here. - Specifying this version allows the platform to disable compatibility - code that is not required or enable newer features that are not - available to older applications.

+ Specifying this target version allows the platform to disable compatibility + settings that are not required for the target version (which may otherwise be turned on + in order to maintain forward-compatibility) or enable newer features that are not + available to older applications. This does not mean that you can program different + features for different versions of the platform—it simply informs the platform that you + have tested against the target version and the platform should not perform any extra + work to maintain forward-compatibility with the target version.

Introduced in: API Level 4

-- cgit v1.1