summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2009-08-29 14:41:57 -0700
committerScott Main <smain@google.com>2009-08-31 14:56:23 -0700
commit05902f06f6fd2dd30f068d185f7c476e3d9b5717 (patch)
tree02e45512b6050c3a50553dae65747cad1ff4dcda
parenta84a26d2afab503ed32e6ecc94acba46a5eb9eb3 (diff)
downloadbase-05902f06f6fd2dd30f068d185f7c476e3d9b5717.tar.gz
docs only.
add uses-feature "name" attribute
-rw-r--r--docs/html/guide/topics/manifest/uses-feature-element.jd34
1 files changed, 32 insertions, 2 deletions
diff --git a/docs/html/guide/topics/manifest/uses-feature-element.jd b/docs/html/guide/topics/manifest/uses-feature-element.jd
index 2626735cae11..0248985eecb3 100644
--- a/docs/html/guide/topics/manifest/uses-feature-element.jd
+++ b/docs/html/guide/topics/manifest/uses-feature-element.jd
@@ -6,7 +6,8 @@ page.title=&lt;uses-feature&gt;
<dt>syntax:</dt>
<dd>
<pre class="stx">
-&lt;uses-feature android:<a href="#glEsVersion">glEsVersion</a>=["true" | "false"] /&gt;
+&lt;uses-feature android:<a href="#glEsVersion">glEsVersion</a>="<em>integer</em>"
+ android:<a href="#name">name</a>="<em>string</em>" /&gt;
</pre>
</dd>
@@ -14,7 +15,7 @@ page.title=&lt;uses-feature&gt;
<dd><code><a href="{@docRoot}guide/topics/manifest/manifest-element.html">&lt;manifest&gt;</a></code></dd>
<dt>description:</dt>
-<dd>This element specifies specific features used by the application.
+<dd>This element specifies a specific feature used by the application.
Android provides some features that may not be equally supported by all
Android devices. In a manner similar to the <code><a href="uses-sdk-element.html">&lt;uses-sdk></a></code>
element, this element allows an application to specify which potentially variable
@@ -23,6 +24,11 @@ will not be installed on devices that do not offer the required feature.</p>
<p>For example, an application might specify that it requires a certain version of Open GL.
If a device does not support that version of Open GL, then it will not allow installation of the application.</p>
+
+<p class="note"><strong>Note:</strong>
+For each feature required by your application, you must include a new {@code
+&lt;uses-feature>} element. Multiple features cannot be declared in one
+instance of this element.</p>
</dd>
@@ -38,6 +44,30 @@ If a device does not support that version of Open GL, then it will not allow ins
</dl>
</dd>
+<dd>
+<dl class="attr"><dt><a name="name"></a>{@code android:name}</dt>
+ <dd>The name of a feature required by the application.
+ The value must be one of the following accepted strings:
+
+ <table>
+ <tr>
+ <th>Value</th>
+ <th>Description</th>
+ </tr><tr>
+ <td>"{@code android.hardware.camera}"</td>
+ <td>The application requires a camera.</td>
+ </tr><tr>
+ <td>"{@code android.hardware.camera.autofocus}"</td>
+ <td>The application requires a camera with auto-focus capability.
+ As a prerequisite, "{@code android.hardware.camera}" must also be declared
+ with a separate {@code &lt;uses-feature>} element.</td>
+ </tr>
+ </table>
+
+ </dd>
+</dl>
+</dd>
+
<!-- ##api level indication## -->
<dt>introduced in:</dt>
<dd>API Level 4</dd>