uses-feature-element.jd revision 71d4b289a7a934ecd16c3036b812d40db6d3a74d
1page.title=<uses-feature>
2@jd:body
3
4<dl class="xml">
5
6<dt>syntax:</dt>
7<dd>
8<pre class="stx">
9&lt;uses-feature android:<a href="#glEsVersion">glEsVersion</a>=["true" | "false"] /&gt;
10</pre>
11</dd>
12
13<dt>contained in:</dt>
14<dd><code><a href="{@docRoot}guide/topics/manifest/manifest-element.html">&lt;manifest&gt;</a></code></dd>
15
16<dt>description:</dt>
17<dd>This element specifies specific features used by the application.
18Android provides some features that may not be equally supported by all
19Android devices. In a manner similar to the <code><a href="uses-sdk-element.html">&lt;uses-sdk></a></code> 
20element, this element allows an application to specify which potentially variable
21features it requires. In this way, the application
22will not be installed on devices that do not offer the required feature.</p>
23
24<p>For example, an application might specify that it requires a certain version of Open GL.
25If a device does not support that version of Open GL, then it will not allow installation of the application.</p>
26</dd> 
27
28
29<dt>attributes:</dt>
30
31<dd>
32<dl class="attr"><dt><a name="glEsVersion"></a>{@code android:glEsVersion}</dt>
33  <dd>The GLES version needed by the application.
34     The higher 16 bits represent the major number and the lower 16 bits
35     represent the minor number. For example, for GL 1.2 referring to
36     0x00000102, the actual value should be set as 0x00010002.
37  </dd>
38</dl>
39</dd>
40
41<!-- ##api level indication## -->
42<dt>introduced in:</dt>
43<dd>API Level 4</dd>
44
45<dt>see also:</dt>
46<dd>
47  <ul>
48    <li>{@link android.content.pm.ConfigurationInfo}</li>
49  </ul>
50</dd>
51
52</dl>
53