uses-sdk-element.jd revision 3001a035439d8134a7d70d796376d1dfbff3cdcd
1page.title=<uses-sdk>
2@jd:body
3
4<dl class="xml">
5<dt>syntax:</dt>
6<dd><pre class="stx">&lt;uses-sdk android:<a href="#min">minSdkVersion</a>="<i>integer</i>" /&gt;</pre></dd>
7
8<dt>contained in:</dt>
9<dd><code><a href="{@docRoot}guide/topics/manifest/manifest-element.html">&lt;manifest&gt;</a></code></dd>
10
11<dt>description:</dt>
12<dd>Declares which levels of the Android API the application can run against.  
13The level is incremented when there are additions to the API and resource tree, 
14so an application developed using level 3 of the API may not run against level 
151 or 2, but should run against level 3, 4, 5, and above.
16</p>
17
18<p>
19The default level is 1. 
20</p>
21
22<p>
23For more information on the API level, see the 
24<a href="{@docRoot}guide/publishing/versioning.html#minsdkversion">Specifying 
25Minimum System API Version</a> section of 
26<a href="{@docRoot}guide/publishing/versioning.html">Versioning Your 
27Applications</a>.
28</p></dd> 
29
30
31<dt>attributes:</dt>
32<dd><dl class="attr">
33<dt><a name="min"></a>{@code android:minSdkVersion}</dt>
34<dd>An integer designating the minimum level of the Android API that's required 
35for the application to run.
36
37<p>
38Despite its name, this attribute is set to the API level, <em>not</em> to the 
39version number of the SDK (software development kit).  The API level is always 
40a single integer; the SDK version may be split into major and minor components 
41(such as 1.2).  You cannot derive the API level from the SDK version number 
42(for example, it is not the same as the major version or the sum of the major 
43and minor versions).  To learn what the API level is, check the notes that 
44came with the SDK you're using.
45</p></dd>
46
47</dl></dd>
48
49</dl>
50