Merge branch 'readonly-p4-master'
This commit is contained in:
committed by
The Android Open Source Project
commit
fb56fcabda
@@ -40,6 +40,10 @@ as follows:
|
||||
</dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter></a></code></dd>
|
||||
|
||||
|
||||
@@ -123,6 +123,10 @@ the alias in the manifest.
|
||||
</p></dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code></dd>
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ page.title=<activity>
|
||||
"singleTask" | "singleInstance"]
|
||||
android:<a href="#multi">multiprocess</a>=["true" | "false"]
|
||||
android:<a href="#nm">name</a>="<i>string</i>"
|
||||
android:<a href="#nohist">noHistory</a>=["true" | "false"] <!-- ##api level 3## -->
|
||||
android:<a href="#prmsn">permission</a>="<i>string</i>"
|
||||
android:<a href="#proc">process</a>="<i>string</i>"
|
||||
android:<a href="#screen">screenOrientation</a>=["unspecified" | "user" | "behind" |
|
||||
@@ -26,7 +27,12 @@ page.title=<activity>
|
||||
"sensor" | "nonsensor"]
|
||||
android:<a href="#state">stateNotNeeded</a>=["true" | "false"]
|
||||
android:<a href="#aff">taskAffinity</a>="<i>string</i>"
|
||||
android:<a href="#theme">theme</a>="<i>resource or theme</i>" >
|
||||
android:<a href="#theme">theme</a>="<i>resource or theme</i>"
|
||||
android:<a href="#wsoft">windowSoftInputMode</a>=[<i>one or more of</i>: "stateUnspecified"
|
||||
"stateUnchanged" "stateHidden"
|
||||
"stateAlwaysHidden" "stateVisible"
|
||||
"stateAlwaysVisible" "adjustUnspecified"
|
||||
"adjustResize" "adjustPan"] > <!-- ##api level 3## -->
|
||||
. . .
|
||||
</activity></pre></dd>
|
||||
|
||||
@@ -158,8 +164,8 @@ separated by '{@code |}' — for example, "{@code locale|navigation|orientat
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>Value</b></td>
|
||||
<td><b>Description</b></td>
|
||||
<th>Value</th>
|
||||
<th>Description</th>
|
||||
</tr><tr>
|
||||
<td>"{@code mcc}"</td>
|
||||
<td>The IMSI mobile country code (MCC) has changed —
|
||||
@@ -212,12 +218,12 @@ is "{@code true}".
|
||||
|
||||
<p>
|
||||
The <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> element has its own
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#enabled">enabled</a></code> attribute that applies to all
|
||||
application components, including activities. The
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> and {@code <activity>}
|
||||
attributes must both be "{@code true}" (as they both are by default) for
|
||||
the system to be able to instantiate the activity. If either is
|
||||
"{@code false}", it cannot be instantiated.
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#enabled">enabled</a></code>
|
||||
attribute that applies to all application components, including activities. The
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
and {@code <activity>} attributes must both be "{@code true}" (as they both
|
||||
are by default) for the system to be able to instantiate the activity. If either
|
||||
is "{@code false}", it cannot be instantiated.
|
||||
</p></dd>
|
||||
|
||||
<dt><a name="exclude"></a>{@code android:excludeFromRecents}</dt>
|
||||
@@ -246,7 +252,8 @@ is intended for external use, so the default value is "{@code true}".
|
||||
<p>
|
||||
This attribute is not the only way to limit an activity's exposure to other
|
||||
applications. You can also use a permission to limit the external entities that
|
||||
can invoke the activity (see the <code><a href="{@docRoot}guide/topics/manifest/activity-element.html#prmsn">permission</a></code>
|
||||
can invoke the activity (see the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/activity-element.html#prmsn">permission</a></code>
|
||||
attribute).
|
||||
</p></dd>
|
||||
|
||||
@@ -257,7 +264,8 @@ home screen) — "{@code true}" if it should be shut down, and "{@code false
|
||||
if not. The default value is "{@code false}".
|
||||
|
||||
<p>
|
||||
If this attribute and <code><a href="{@docRoot}guide/topics/manifest/activity-element.html#reparent">allowTaskReparenting</a></code>
|
||||
If this attribute and
|
||||
<code><a href="{@docRoot}guide/topics/manifest/activity-element.html#reparent">allowTaskReparenting</a></code>
|
||||
are both "{@code true}", this attribute trumps the other. The affinity of the
|
||||
activity is ignored. The activity is not re-parented, but destroyed.
|
||||
</p>
|
||||
@@ -272,14 +280,15 @@ The icon is often accompanied by a label (see the {@code label} attribute).
|
||||
<p>
|
||||
This attribute must be set as a reference to a drawable resource containing
|
||||
the image definition. If it is not set, the icon specified for the application
|
||||
as a whole is used instead (see the <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
as a whole is used instead (see the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#icon">icon</a></code> attribute).
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The activity's icon — whether set here or by the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> element — is also the
|
||||
default icon for all the activity's intent filters (see the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element — is also the default icon for all the activity's intent filters (see the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter></a></code> element's
|
||||
<code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html#icon">icon</a></code> attribute).
|
||||
</p></dd>
|
||||
@@ -413,6 +422,24 @@ element.
|
||||
There is no default. The name must be specified.
|
||||
</p></dd>
|
||||
|
||||
<!-- ##api level 3## -->
|
||||
<dt><a name="nohist"></a>{@code android:noHistory}</dt>
|
||||
<dd>Whether or not the activity should be removed from the activity stack and
|
||||
finished (its <code>{@link android.app.Activity#finish finish()}</code>
|
||||
method called) when the user navigates away from it and it's no longer
|
||||
visible on screen — "{@code true}" if it should be finished, and
|
||||
"{@code false}" if not. The default value is "{@code false}".
|
||||
|
||||
<p>
|
||||
A value of "{@code true}" means that the activity will not leave a
|
||||
historical trace. It will not remain in the activity stack for the task,
|
||||
so the user will not be able to return to it.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This attribute was introduced in API Level 3.
|
||||
</p>
|
||||
|
||||
<dt><a name="prmsn"></a>{@code android:permission}</dt>
|
||||
<dd>The name of a permission that clients must have to launch the activity
|
||||
or otherwise get it to respond to an intent. If a caller of
|
||||
@@ -423,9 +450,10 @@ delivered to the activity.
|
||||
|
||||
<p>
|
||||
If this attribute is not set, the permission set by the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> element's
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#prmsn">permission</a></code> attribute applies
|
||||
to the activity. If neither attribute is set, the activity is
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element's
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#prmsn">permission</a></code>
|
||||
attribute applies to the activity. If neither attribute is set, the activity is
|
||||
not protected by a permission.
|
||||
</p>
|
||||
|
||||
@@ -441,9 +469,10 @@ Permissions</a>.
|
||||
<dd>The name of the process in which the activity should run. Normally,
|
||||
all components of an application run in the default process created for the
|
||||
application. It has the same name as the application package. The <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> element's
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code> attribute can set a different
|
||||
default for all components. But each component can override the default,
|
||||
allowing you to spread your application across multiple processes.
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code>
|
||||
attribute can set a different default for all components. But each component
|
||||
can override the default, allowing you to spread your application across
|
||||
multiple processes.
|
||||
|
||||
<p>
|
||||
If the name assigned to this attribute begins with a colon (':'), a new
|
||||
@@ -540,10 +569,14 @@ it to an empty string.
|
||||
|
||||
<p>
|
||||
If this attribute is not set, the activity inherits the affinity set
|
||||
for the application (see the <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#aff">taskAffinity</a></code> attribute).
|
||||
The name of the default affinity for an application is the package name set
|
||||
by the <code><a href="{@docRoot}guide/topics/manifest/manifest-element.html"><manifest></a></code> element.
|
||||
for the application (see the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element's
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#aff">taskAffinity</a></code>
|
||||
attribute). The name of the default affinity for an application is
|
||||
the package name set by the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/manifest-element.html"><manifest></a></code>
|
||||
element.
|
||||
</p>
|
||||
|
||||
<dt><a name="theme"></a>{@code android:theme}</dt>
|
||||
@@ -555,11 +588,123 @@ match what the activity actually looks like).
|
||||
|
||||
<p>
|
||||
If this attribute is not set, the activity inherits the theme set for the
|
||||
application as a whole — see the <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#theme">theme</a></code> attribute. If that attribute is
|
||||
also not set, the default system theme is used.
|
||||
application as a whole — see the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
element's
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#theme">theme</a></code>
|
||||
attribute. If that attribute is also not set, the default system theme is used.
|
||||
</p>
|
||||
<dd>
|
||||
<dd>
|
||||
|
||||
<!-- ##api level 3## -->
|
||||
<dt><a name="wsoft"></a>{@code android:windowSoftInputMode}</dt>
|
||||
<dd>How the main window of the activity interacts with the window containing
|
||||
the on-screen soft keyboard. The setting for this attribute affects two
|
||||
things:
|
||||
|
||||
<ul>
|
||||
<li>The state of the soft keyboard — whether it is hidden or visible
|
||||
— when the activity becomes the focus of user attention.</li>
|
||||
|
||||
<li>The adjustment made to the activity's main window — whether it is
|
||||
resized smaller to make room for the soft keyboard or whether its contents
|
||||
pan to make the current focus visible when part of the window is covered by
|
||||
the soft keyboard.</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
The setting must be one of the values listed in the following table, or a
|
||||
combination of one "{@code state...}" value plus one "{@code adjust...}"
|
||||
value. Setting multiple values in either group — multiple
|
||||
"{@code state...}" values, for example &mdash has undefined results.
|
||||
Individual values are separated by a vertical bar ({@code |}). For example:
|
||||
</p>
|
||||
|
||||
<pre><activity android:windowSoftInputMode="stateVisible|adjustResize" . . . ></pre>
|
||||
|
||||
<p>
|
||||
Values set here (other than "{@code stateUnspecified}" and
|
||||
"{@code adjustUnspecified}") override values set in the theme.
|
||||
</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Value</th>
|
||||
<th>Description</th>
|
||||
</tr><tr>
|
||||
<td>"{@code stateUnspecified}"</td>
|
||||
<td>The state of the soft keyboard (whether it is hidden or visible)
|
||||
is not specified. The system will choose an appropriate state or
|
||||
rely on the setting in the theme.
|
||||
|
||||
<p>
|
||||
This is the default setting for the behavior of the soft keyboard.
|
||||
</p></td>
|
||||
</tr></tr>
|
||||
<td>"{@code stateUnchanged}"</td>
|
||||
<td>The soft keyboard is kept in whatever state it was last in,
|
||||
whether visible or hidden, when the activity comes to the fore.</td>
|
||||
</tr></tr>
|
||||
<td>"{@code stateHidden}"</td>
|
||||
<td>The soft keyboard is hidden when the user chooses the activity
|
||||
— that is, when the user affirmatively navigates forward to the
|
||||
activity, rather than backs into it because of leaving another activity.</td>
|
||||
</tr></tr>
|
||||
<td>"{@code stateAlwaysHidden}"</td>
|
||||
<td>The soft keyboard is always hidden when the activity's main window
|
||||
has input focus.</td>
|
||||
</tr></tr>
|
||||
<td>"{@code stateVisible}"</td>
|
||||
<td>The soft keyboard is visible when that's normally appropriate
|
||||
(when the user is navigating forward to the activity's main window).</td>
|
||||
</tr></tr>
|
||||
<td>"{@code stateAlwaysVisible}"</td>
|
||||
<td>The soft keyboard is made visible when the user chooses the
|
||||
activity — that is, when the user affirmatively navigates forward
|
||||
to the activity, rather than backs into it because of leaving another
|
||||
activity.</td>
|
||||
</tr></tr>
|
||||
<td>"{@code adjustUnspecified}"</td>
|
||||
<td>It is unspecified whether the activity's main window resizes
|
||||
to make room for the soft keyboard, or whether the contents
|
||||
of the window pan to make the currentfocus visible on-screen.
|
||||
The system will automatically select one of these modes depending
|
||||
on whether the content of the window has any layout views that
|
||||
can scroll their contents. If there is such a view, the window
|
||||
will be resized, on the assumption that scrolling can make all
|
||||
of the window's contents visible within a smaller area.
|
||||
|
||||
<p>
|
||||
This is the default setting for the behavior of the main window.
|
||||
</p></td>
|
||||
</tr></tr>
|
||||
<td>"{@code adjustResize}"</td>
|
||||
<td>The activity's main window is always resized to make room for
|
||||
the soft keyboard on screen.</td>
|
||||
</tr></tr>
|
||||
<td>"{@code adjustPan}"</td>
|
||||
<td>The activity's main window is not resized to make room for the soft
|
||||
keyboard. Rather, the contents of the window are automatically
|
||||
panned so that the current focus is never obscured by the keyboard
|
||||
and users can always see what they are typing. This is generally less
|
||||
desireable than resizing, because the user may need to close the soft
|
||||
keyboard to get at and interact with obscured parts of the window.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
This attribute was introduced in API Level 3.
|
||||
</p></dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1 for all attributes except for
|
||||
<code><a href="#nohist">noHistory</a></code> and
|
||||
<code><a href="#wsoft">windowSoftInputMode</a></code>, which were added in API
|
||||
Level 3.</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/activity-alias-element.html"><activity-alias></a></code></dd>
|
||||
</dl>
|
||||
@@ -217,6 +217,10 @@ attributes; see that attribute for more information.</dd>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/service-element.html"><service></a></code>
|
||||
|
||||
@@ -29,7 +29,11 @@ the string value for {@code CATEGORY_LAUNCHER} is
|
||||
Custom categories should use the package name as a prefix, to ensure
|
||||
that they are unique.
|
||||
</p></dd>
|
||||
</dl></dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/action-element.html"><action></a></code>
|
||||
|
||||
@@ -72,12 +72,21 @@ section in the introduction.
|
||||
<dd>The host part of a URI authority. This attribute is meaningless
|
||||
unless a <code><a href="{@docRoot}guide/topics/manifest/data-element.html#scheme">scheme</a></code> attribute is also
|
||||
specified for the filter.
|
||||
|
||||
<p class="note">Note: host name matching in the Android framework is
|
||||
case-sensitive, unlike the formal RFC. As a result, you should always specify
|
||||
host names using lowercase letters.</p>
|
||||
</dd>
|
||||
|
||||
<dt><a name="mime"></a>{@code android:mimeType}</dt>
|
||||
<dd>A MIME media type, such as {@code image/jpeg} or {@code audio/mpeg4-generic}.
|
||||
The subtype can be the asterisk wildcard ({@code *}) to indicate that any
|
||||
subtype matches.</dd>
|
||||
subtype matches.
|
||||
|
||||
<p class="note">Note: MIME type matching in the Android framework is
|
||||
case-sensitive, unlike formal RFC MIME types. As a result, you should always
|
||||
specify MIME types using lowercase letters.</p>
|
||||
</dd>
|
||||
|
||||
<dt><a name="path"></a>{@code android:path}
|
||||
<br/>{@code android:pathPrefix}
|
||||
@@ -138,9 +147,18 @@ A scheme is specified without the trailing colon (for example,
|
||||
If the filter has a data type set (the <code><a href="{@docRoot}guide/topics/manifest/data-element.html#mime">mimeType</a></code>
|
||||
attribute) but no scheme, the {@code content:} and {@code file:} schemes are
|
||||
assumed.
|
||||
</p></dd>
|
||||
</p>
|
||||
|
||||
<p class="note">Note: scheme matching in the Android framework is
|
||||
case-sensitive, unlike the RFC. As a result, you should always specify schemes
|
||||
using lowercase letters.</p>
|
||||
</dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/action-element.html"><action></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/category-element.html"><category></a></code></dd>
|
||||
|
||||
@@ -74,6 +74,10 @@ For more information on these types of patterns, see the descriptions of
|
||||
</p></dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd>the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/provider-element.html#gprmns">grantUriPermissions</a></code>
|
||||
|
||||
@@ -51,6 +51,10 @@ name specified in the <code><a href="{@docRoot}guide/topics/manifest/manifest-el
|
||||
There is no default. The name must be specified.
|
||||
</p></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt><a name="trgt"></a>{@code android:targetPackage}</dt>
|
||||
<dd>The application that the Instrumentation object will run against.
|
||||
An application is identified by the package name assigned in its manifest
|
||||
|
||||
@@ -122,6 +122,10 @@ higher priority.
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/action-element.html"><action></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/category-element.html"><category></a></code>
|
||||
|
||||
@@ -6,6 +6,7 @@ page.title=<manifest>
|
||||
<dd><pre class="stx"><manifest xmlns:<a href="#nspace">android</a>="http://schemas.android.com/apk/res/android"
|
||||
<a href="#package">package</a>="<i>string</i>"
|
||||
android:<a href="#uid">sharedUserId</a>="<i>string</i>"
|
||||
android:<a href="#uidlabel">sharedUserLabel</a>="<i>string resource</i>" <!-- ##api level 3## -->
|
||||
android:<a href="#vcode">versionCode</a>="<i>integer</i>"
|
||||
android:<a href="#vname">versionName</a>="<i>string</i>" >
|
||||
. . .
|
||||
@@ -25,7 +26,8 @@ page.title=<manifest>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-configuration-element.html"><uses-configuration></a></code> <!-- ##api level 3## -->
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission></a></code></dd>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html"><uses-sdk></a></code></dd>
|
||||
|
||||
<p>
|
||||
@@ -64,7 +66,17 @@ By default, Android assigns each application its own unique user ID.
|
||||
However, if this attribute is set to the same value for two or more applications,
|
||||
they will all share the same ID — provided that they are also signed
|
||||
by the same certificate. Application with the same user ID can access each
|
||||
other's data and, if desired, run in the same process.</dd>
|
||||
other's data and, if desired, run in the same process.</dd>
|
||||
|
||||
<dt><a name="uidlabel"></a>{@code android:sharedUserLabel}</dt>
|
||||
<dd>A user-readable label for the shared user ID. The label must be set as
|
||||
a reference to a string resource; it cannot be a raw string.
|
||||
|
||||
<p>
|
||||
<!-- ##api level indication## -->
|
||||
This attribute was introduced in API Level 3. It is meaningful only if the
|
||||
<code><a href="#uid">sharedUserId</a></code> attribute is also set.
|
||||
</p></dd>
|
||||
|
||||
<dt><a name="vcode"></a>{@code android:versionCode}</dt>
|
||||
<dd>An internal version number. This number is used only to determine whether
|
||||
@@ -88,6 +100,12 @@ than to be displayed to users. The {@code versionCode} attribute holds
|
||||
the significant version number used internally.
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1 for all attributes except for
|
||||
<code><a href="#uidlabel">sharedUserLabel</a></code>, which was added in
|
||||
level 3.</dd>
|
||||
|
||||
<p>
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code></dd>
|
||||
|
||||
@@ -115,6 +115,7 @@ other mention of the element name.
|
||||
<a href="{@docRoot}guide/topics/manifest/provider-element.html"></provider></a>
|
||||
|
||||
<a href="{@docRoot}guide/topics/manifest/uses-library-element.html"><uses-library /></a>
|
||||
<a href="{@docRoot}guide/topics/manifest/uses-configuration-element.html"><uses-configuration /></a> <!-- ##api level 3## -->
|
||||
|
||||
<a href="{@docRoot}guide/topics/manifest/application-element.html"></application></a>
|
||||
|
||||
@@ -145,6 +146,7 @@ add your own elements or attributes.
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/provider-element.html"><provider></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/receiver-element.html"><receiver></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/service-element.html"><service></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-configuration-element.html"><uses-configuration></a></code> <!-- ##api level 3## -->
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-library-element.html"><uses-library></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html"><uses-sdk></a></code>
|
||||
|
||||
@@ -87,4 +87,8 @@ to the item. The ID can be retrieved from the meta-data Bundle by the
|
||||
</dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
@@ -122,6 +122,10 @@ The value can be set to one of the following strings:
|
||||
</dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree></a></code>
|
||||
|
||||
@@ -51,6 +51,10 @@ element's
|
||||
attribute.</dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree></a></code>
|
||||
|
||||
@@ -51,7 +51,10 @@ two period-separated seqments in its path — for example,
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<p>
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group></a></code>
|
||||
|
||||
@@ -260,7 +260,10 @@ See also the <code><a href="#prmsn">permission</a></code> and
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<p>
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><a href="{@docRoot}guide/topics/providers/content-providers.html">Content Providers</a></dd>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ page.title=<receiver>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code></dd>
|
||||
|
||||
<dt>can contain:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter></a></code>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filer></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/meta-data-element.html"><meta-data></a></code></dd>
|
||||
|
||||
<dt>description:</dt>
|
||||
@@ -47,16 +47,10 @@ The <code><a href="{@docRoot}guide/topics/manifest/application-element.html"><
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#enabled">enabled</a></code> attribute that applies to all
|
||||
application components, including broadcast receivers. The
|
||||
<code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code> and
|
||||
{@code <receiver>} elements must both set {@code android:enabled} equal to
|
||||
"{@code true}" for the broadcast receiver to be enabled. If either is "{@code false}",
|
||||
the receiver is disabled and cannot be instantiated.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The default value depends on whether the broadcast receiver contains intent filters.
|
||||
If any intent filters are specified, the default value is "{@code true}". If no
|
||||
filters are specified, the default value is "{@code false}".
|
||||
</dd>
|
||||
{@code <receiver>} attributes must both be "{@code true}" for
|
||||
the broadcast receiver to be enabled. If either is "{@code false}", it is
|
||||
disabled; it cannot be instantiated.
|
||||
</p></dd>
|
||||
|
||||
<dt><a name="exported"></a>{@code android:exported}</dt>
|
||||
<dd>Whether or not the broadcast receiver can receive messages from sources
|
||||
@@ -123,12 +117,9 @@ it can also be set as a raw string.
|
||||
{@link android.content.BroadcastReceiver}. This should be a fully qualified
|
||||
class name (such as, "{@code com.example.project.ReportReceiver}"). However,
|
||||
as a shorthand, if the first character of the name is a period (for example,
|
||||
"{@code .ReportReceiver}"), it is appended to the package name specified in
|
||||
"{@code . ReportReceiver}"), it is appended to the package name specified in
|
||||
the <code><a href="{@docRoot}guide/topics/manifest/manifest-element.html"><manifest></a></code> element.
|
||||
|
||||
<p>The {@link android.content.BroadcastReceiver} subclass can be a static inner
|
||||
class, although it cannot be an ordinary (non-static) inner class.
|
||||
|
||||
<p>
|
||||
There is no default. The name must be specified.
|
||||
</p></dd>
|
||||
@@ -170,4 +161,8 @@ resource usage.
|
||||
</p></dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
@@ -173,4 +173,8 @@ resource usage.
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/application-element.html"><application></a></code>
|
||||
<br><code><a href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
176
docs/html/guide/topics/manifest/uses-configuration-element.jd
Executable file
176
docs/html/guide/topics/manifest/uses-configuration-element.jd
Executable file
@@ -0,0 +1,176 @@
|
||||
page.title=<uses-configuration>
|
||||
@jd:body
|
||||
|
||||
<!-- ##api level 3## see comment below -->
|
||||
|
||||
<!-- the "no___" values are nonsensical if they mean "doesn't work on devices with a
|
||||
keyboard / navigation control / touch screen." Dianne says that that's what they mean and
|
||||
that they therefore should be eliminated. Suchi says that they mean "doesn't require a
|
||||
keyboard / navigation control / touch screen to work." But then what does "undefined" mean?
|
||||
Seems like some API change is in the works, either eliminating the "no___" values or
|
||||
"undefined". Since it's unclear what the change will be, I've chosen to document the "no___"
|
||||
and "undefined" attributes using the same language, which is surely wrong but may make it
|
||||
easier to update the doc when the change is made. -->
|
||||
|
||||
<dl class="xml">
|
||||
<dt>syntax:</dt>
|
||||
<dd><pre class="stx"><uses-configuration android:<a href="#five">reqFiveWayNav</a>=["true" | "false"]
|
||||
android:<a href="#hard">reqHardKeyboard</a>=["true" | "false"]
|
||||
android:<a href="#kbd">reqKeyboardType</a>=["undefined" | "nokeys" | "qwerty" |
|
||||
"twelvekey"]
|
||||
android:<a href="#nav">reqNavigation</a>=["undefined" | "nonav" | "dpad" |
|
||||
"trackball" | "wheel"]
|
||||
android:<a href="#touch">reqTouchScreen</a>=["undefined" | "notouch" | "stylus" |
|
||||
"finger"] /></pre></dd>
|
||||
|
||||
<dt>contained in:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/manifest-element.html"><manifest></a></code></dd>
|
||||
|
||||
<dt>description:</dt>
|
||||
<dd>Indicates what hardware and software features the application requires.
|
||||
For example, an application might specify that it requires a physical keyboard
|
||||
or a particular navigation device, like a trackball. The specification is
|
||||
used to avoid installing the application on devices where it will not work.
|
||||
|
||||
<p>
|
||||
If an application can work with different device configurations, it
|
||||
should include separate {@code <uses-configuration>} declarations for
|
||||
each one. Each declaration must be complete. For example, if an application
|
||||
requires a five-way navigation control, a touch screen that can be operated
|
||||
with a finger, and either a standard QWERTY keyboard or a numeric 12-key
|
||||
keypad like those found on most phones, it would specify these requirements
|
||||
with two {@code <uses-configuration>} elements as follows:
|
||||
</p>
|
||||
|
||||
<pre><uses-configuration android:reqFiveWayNav="true" android:reqTouchScreen="finger"
|
||||
android:reqKeyboardType="qwerty" />
|
||||
<uses-configuration android:reqFiveWayNav="true" android:reqTouchScreen="finger"
|
||||
android:reqKeyboardType="twelvekey" /></pre></dd>
|
||||
|
||||
<dt>attributes:</dt>
|
||||
<dd><dl class="attr">
|
||||
<dt><a name="five"></a>{@code android:reqFiveWayNav}</dt>
|
||||
<dd>Whether or not the application requires a five-way navigation control
|
||||
— "{@code true}" if it does, and "{@code false}" if not. A five-way
|
||||
control is one that can move the selection up, down, right, or left, and
|
||||
also provides a way of invoking the current selection. It could be a
|
||||
D-pad (directional pad), trackball, or other device.
|
||||
|
||||
<p>
|
||||
If an application requires a directional control, but not a control of a
|
||||
particular type, it can set this attribute to "{@code true}" and ignore
|
||||
the <code><a href="#nav">reqNavigation</a></code> attribute. However,
|
||||
if it requires a particular type of directional control, it can ignore
|
||||
this attribute and set {@code reqNavigation} instead.
|
||||
</p></dd>
|
||||
|
||||
<dt><a name="hard"></a>{@code android:reqHardKeyboard}</dt>
|
||||
<dd>Whether or not the application requires a hardware keyboard —
|
||||
"{@code true}" if it does, and "{@code false}" if not.</dd>
|
||||
|
||||
<dt><a name="kbd"></a>{@code android:reqKeyboardType}</dt>
|
||||
<dd>The type of keyboard the application requires, if any at all.
|
||||
This attribute does not distinguish between hardware and software
|
||||
keyboards. If a hardware keyboard of a certain type is required,
|
||||
specify the type here and also set the {@code reqHardKeyboard} attribute
|
||||
to "{@code true}".
|
||||
|
||||
<p>
|
||||
The value must be one of the following strings:
|
||||
</p>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Value</th>
|
||||
<th>Description</th>
|
||||
</tr><tr>
|
||||
<td>"{@code undefined}"</td>
|
||||
<td>The application does not require a keyboard.
|
||||
(A keyboard requirement is not defined.)
|
||||
This is the default value.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code nokeys}"</td>
|
||||
<td>The application does not require a keyboard.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code qwerty}"</td>
|
||||
<td>The application requires a standard QWERTY keyboard.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code twelvekey}"</td>
|
||||
<td>The application requires a twelve-key keypad, like those on most
|
||||
phones — with keys for the digits from {@code 0} through
|
||||
{@code 9} plus star ({@code *}) and pound ({@code #}) keys.</td>
|
||||
</tr>
|
||||
</table></dd>
|
||||
|
||||
<dt><a name="nav"></a>{@code android:reqNavigation}</dt>
|
||||
<dd>The navigation device required by the application, if any. The value
|
||||
must be one of the following strings:
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Value</th>
|
||||
<th>Description</th>
|
||||
</tr><tr>
|
||||
<td>"{@code undefined}"</td>
|
||||
<td>The application does not require any type of navigation control.
|
||||
(The navigation requirement is not defined.)
|
||||
This is the default value.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code nonav}"</td>
|
||||
<td>The application does not require a navigation control.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code dpad}"</td>
|
||||
<td>The application requires a D-pad (directional pad) for navigation.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code trackball}"</td>
|
||||
<td>The application requires a trackball for navigation.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code wheel}"</td>
|
||||
<td>The application requires a navigation wheel.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
If an application requires a navigational control, but the exact type of
|
||||
control doesn't matter, it can set the
|
||||
<code><a href="#five">reqFiveWayNav</a></code> attribute to "{@code true}"
|
||||
rather than set this one.
|
||||
</p></dd>
|
||||
|
||||
<dt><a name="touch"></a>{@code android:reqTouchScreen}</dt>
|
||||
<dd>The type of touch screen the application requires, if any at all.
|
||||
The value must be one of the following strings:
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Value</th>
|
||||
<th>Description</th>
|
||||
</tr><tr>
|
||||
<td>"{@code undefined}"</td>
|
||||
<td>The application doesn't require a touch screen.
|
||||
(The touch screen requirement is undefined.)
|
||||
This is the default value.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code notouch}"</td>
|
||||
<td>The application doesn't require a touch screen.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code stylus}"</td>
|
||||
<td>The application requires a touch screen that's operated with a stylus.</td>
|
||||
</tr><tr>
|
||||
<td>"{@code finger}"</td>
|
||||
<td>The application requires a touch screen that can be operated with a finger.</td>
|
||||
</tr>
|
||||
</table></dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level 3## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 3</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html#config">configChanges</a></code>
|
||||
attribute of the
|
||||
<code><a href="{@docRoot}guide/topics/manifest/activity-element.html"><activity></a></code>
|
||||
element</dd>
|
||||
|
||||
</dl>
|
||||
@@ -29,4 +29,8 @@ contains the package code.
|
||||
<dd>The name of the library.</dd>
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
@@ -33,6 +33,10 @@ a permission name typically includes the package name as a prefix.</dd>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
<dt>see also:</dt>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></code></dd>
|
||||
|
||||
|
||||
@@ -58,4 +58,8 @@ in the <code>minSdkVersion</code> attribute.</p>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
</dl>
|
||||
<!-- ##api level indication## -->
|
||||
<dt>introduced in:</dt>
|
||||
<dd>API Level 1</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
Reference in New Issue
Block a user