am 4e0951c9: am 4e60d012: docs only. add syntax samples for all attributes and revise targetSdkVersion information.
Merge commit '4e0951c9f31c5b5a6026552ede3f47aa038b525e' into eclair-plus-aosp * commit '4e0951c9f31c5b5a6026552ede3f47aa038b525e': docs only.
This commit is contained in:
@@ -3,7 +3,10 @@ page.title=<uses-sdk>
|
|||||||
|
|
||||||
<dl class="xml">
|
<dl class="xml">
|
||||||
<dt>syntax:</dt>
|
<dt>syntax:</dt>
|
||||||
<dd><pre class="stx"><uses-sdk android:<a href="#min">minSdkVersion</a>="<i>integer</i>" /></pre></dd>
|
<dd><pre>
|
||||||
|
<uses-sdk android:<a href="#min">minSdkVersion</a>="<i>integer</i>"
|
||||||
|
android:<a href="#max">maxSdkVersion</a>="<i>integer</i>"
|
||||||
|
android:<a href="#target">targetSdkVersion</a>="<i>integer</i>" /></pre></dd>
|
||||||
|
|
||||||
<dt>contained in:</dt>
|
<dt>contained in:</dt>
|
||||||
<dd><code><a href="{@docRoot}guide/topics/manifest/manifest-element.html"><manifest></a></code></dd>
|
<dd><code><a href="{@docRoot}guide/topics/manifest/manifest-element.html"><manifest></a></code></dd>
|
||||||
@@ -64,12 +67,16 @@ and minor versions).</p>
|
|||||||
<dt><a name="target"></a>{@code android:targetSdkVersion}</dt>
|
<dt><a name="target"></a>{@code android:targetSdkVersion}</dt>
|
||||||
<dd>An integer designating the API Level that the application is targetting.
|
<dd>An integer designating the API Level that the application is targetting.
|
||||||
|
|
||||||
<p>With this attribute set, the application says that is is be able to run on
|
<p>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
|
older versions (down to {@code minSdkVersion}), but was explicitly tested to work
|
||||||
with the version specified here.
|
with the version specified here.
|
||||||
Specifying this version allows the platform to disable compatibility
|
Specifying this target version allows the platform to disable compatibility
|
||||||
code that is not required or enable newer features that are not
|
settings that are not required for the target version (which may otherwise be turned on
|
||||||
available to older applications.</p>
|
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.</p>
|
||||||
|
|
||||||
<p>Introduced in: API Level 4</p>
|
<p>Introduced in: API Level 4</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|||||||
Reference in New Issue
Block a user