Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 131e27a0 authored by Dirk Dougherty's avatar Dirk Dougherty Committed by The Android Open Source Project
Browse files

Merge branch 'readonly-p4-donut' into donut

parents e6a9b452 dc52312c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -40,6 +40,10 @@ as follows:
</dd>
</dd>
</dl></dd>
</dl></dd>


<!-- ##api level indication## -->
<dt>introduced in:</dt>
<dd>API Level 1</dd>

<dt>see also:</dt>
<dt>see also:</dt>
<dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">&lt;intent-filter&gt;</a></code></dd>
<dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">&lt;intent-filter&gt;</a></code></dd>


+4 −0
Original line number Original line Diff line number Diff line
@@ -123,6 +123,10 @@ the alias in the manifest.
</p></dd>
</p></dd>
</dl></dd>
</dl></dd>


<!-- ##api level indication## -->
<dt>introduced in:</dt>
<dd>API Level 1</dd>

<dt>see also:</dt>
<dt>see also:</dt>
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html">&lt;activity&gt;</a></code></dd>
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html">&lt;activity&gt;</a></code></dd>


+173 −28
Original line number Original line Diff line number Diff line
@@ -19,6 +19,7 @@ page.title=&lt;activity&gt;
                              "singleTask" | "singleInstance"]
                              "singleTask" | "singleInstance"]
          android:<a href="#multi">multiprocess</a>=["true" | "false"]
          android:<a href="#multi">multiprocess</a>=["true" | "false"]
          android:<a href="#nm">name</a>="<i>string</i>"
          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="#prmsn">permission</a>="<i>string</i>"
          android:<a href="#proc">process</a>="<i>string</i>"
          android:<a href="#proc">process</a>="<i>string</i>"
          android:<a href="#screen">screenOrientation</a>=["unspecified" | "user" | "behind" |
          android:<a href="#screen">screenOrientation</a>=["unspecified" | "user" | "behind" |
@@ -26,7 +27,12 @@ page.title=&lt;activity&gt;
                                     "sensor" | "nonsensor"]
                                     "sensor" | "nonsensor"]
          android:<a href="#state">stateNotNeeded</a>=["true" | "false"]
          android:<a href="#state">stateNotNeeded</a>=["true" | "false"]
          android:<a href="#aff">taskAffinity</a>="<i>string</i>"
          android:<a href="#aff">taskAffinity</a>="<i>string</i>"
          android:<a href="#theme">theme</a>="<i>resource or theme</i>" &gt;
          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"] &gt;   <!-- ##api level 3## -->
    . . .
    . . .
&lt;/activity&gt;</pre></dd>
&lt;/activity&gt;</pre></dd>


@@ -158,8 +164,8 @@ separated by '{@code |}' &mdash; for example, "{@code locale|navigation|orientat


<table>
<table>
<tr>
<tr>
   <td><b>Value</b></td>
   <th>Value</th>
   <td><b>Description</b></td>
   <th>Description</th>
</tr><tr>
</tr><tr>
   <td>"{@code mcc}"</td>
   <td>"{@code mcc}"</td>
   <td>The IMSI mobile country code (MCC) has changed &mdash; 
   <td>The IMSI mobile country code (MCC) has changed &mdash; 
@@ -212,12 +218,12 @@ is "{@code true}".


<p>
<p>
The <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element has its own 
The <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</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 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#enabled">enabled</a></code> 
application components, including activities.  The 
attribute that applies to all application components, including activities.  The 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> and {@code &lt;activity&gt;} 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
attributes must both be "{@code true}" (as they both are by default) for 
and {@code &lt;activity&gt;} attributes must both be "{@code true}" (as they both 
the system to be able to instantiate the activity.  If either is 
are by default) for the system to be able to instantiate the activity.  If either 
"{@code false}", it cannot be instantiated.
is "{@code false}", it cannot be instantiated.
</p></dd>
</p></dd>


<dt><a name="exclude"></a>{@code android:excludeFromRecents}</dt>
<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>
<p>
This attribute is not the only way to limit an activity's exposure to other
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 
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).
attribute).
</p></dd>
</p></dd>


@@ -257,7 +264,8 @@ home screen) &mdash; "{@code true}" if it should be shut down, and "{@code false
if not.  The default value is "{@code false}". 
if not.  The default value is "{@code false}". 


<p>
<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 
are both "{@code true}", this attribute trumps the other.  The affinity of the 
activity is ignored.  The activity is not re-parented, but destroyed.
activity is ignored.  The activity is not re-parented, but destroyed.
</p>
</p>
@@ -272,14 +280,15 @@ The icon is often accompanied by a label (see the {@code label} attribute).
<p>
<p>
This attribute must be set as a reference to a drawable resource containing 
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 
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">&lt;application&gt;</a></code> 
as a whole is used instead (see the 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#icon">icon</a></code> attribute).
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#icon">icon</a></code> attribute).
</p>
</p>


<p>
<p>
The activity's icon &mdash; whether set here or by the 
The activity's icon &mdash; whether set here or by the 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element &mdash; is also the 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
default icon for all the activity's intent filters (see the 
element &mdash; 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">&lt;intent-filter&gt;</a></code> element's 
<code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html">&lt;intent-filter&gt;</a></code> element's 
<code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html#icon">icon</a></code> attribute). 
<code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html#icon">icon</a></code> attribute). 
</p></dd>
</p></dd>
@@ -413,6 +422,24 @@ element.
There is no default.  The name must be specified.
There is no default.  The name must be specified.
</p></dd>
</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 &mdash; "{@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>
<dt><a name="prmsn"></a>{@code android:permission}</dt>
<dd>The name of a permission that clients must have to launch the activity 
<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 
or otherwise get it to respond to an intent.  If a caller of 
@@ -423,9 +450,10 @@ delivered to the activity.


<p>
<p>
If this attribute is not set, the permission set by the 
If this attribute is not set, the permission set by the 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element's
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#prmsn">permission</a></code> attribute applies 
element's
to the activity.  If neither attribute is set, the activity is
<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.
not protected by a permission.
</p>
</p>


@@ -441,9 +469,10 @@ Permissions</a>.
<dd>The name of the process in which the activity should run.  Normally, 
<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 
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">&lt;application&gt;</a></code> element's 
application.  It has the same name as the application package.  The <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> element's 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code> attribute can set a different 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html#proc">process</a></code> 
default for all components.  But each component can override the default,
attribute can set a different default for all components.  But each component 
allowing you to spread your application across multiple processes.
can override the default, allowing you to spread your application across 
multiple processes.


<p>
<p>
If the name assigned to this attribute begins with a colon (':'), a new 
If the name assigned to this attribute begins with a colon (':'), a new 
@@ -540,10 +569,14 @@ it to an empty string.


<p>
<p>
If this attribute is not set, the activity inherits the affinity set 
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">&lt;application&gt;</a></code> 
for the application (see the 
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#aff">taskAffinity</a></code> attribute).  
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
The name of the default affinity for an application is the package name set 
element's 
by the <code><a href="{@docRoot}guide/topics/manifest/manifest-element.html">&lt;manifest&gt;</a></code> element.
<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">&lt;manifest&gt;</a></code> 
element.
</p>
</p>


<dt><a name="theme"></a>{@code android:theme}</dt>
<dt><a name="theme"></a>{@code android:theme}</dt>
@@ -555,11 +588,123 @@ match what the activity actually looks like).


<p>
<p>
If this attribute is not set, the activity inherits the theme set for the 
If this attribute is not set, the activity inherits the theme set for the 
application as a whole &mdash; see the <code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
application as a whole &mdash; see the 
element's <code><a href="{@docRoot}guide/topics/manifest/application-element.html#theme">theme</a></code> attribute.  If that attribute is 
<code><a href="{@docRoot}guide/topics/manifest/application-element.html">&lt;application&gt;</a></code> 
also not set, the default system theme is used.
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>
</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 &mdash; whether it is hidden or visible 
&mdash; when the activity becomes the focus of user attention.</li>

<li>The adjustment made to the activity's main window &mdash; 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 &mdash; multiple 
"{@code state...}" values, for example &mdash has undefined results.  
Individual values are separated by a vertical bar ({@code |}).  For example:
</p>

<pre>&lt;activity android:windowSoftInputMode="stateVisible|adjustResize" . . . &gt;</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 
       &mdash; 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 &mdash; 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>
</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">&lt;application&gt;</a></code> 
<br/><code><a href="{@docRoot}guide/topics/manifest/activity-alias-element.html">&lt;activity-alias&gt;</a></code></dd>
</dl>
</dl>
 No newline at end of file
+4 −0
Original line number Original line Diff line number Diff line
@@ -217,6 +217,10 @@ attributes; see that attribute for more information.</dd>


</dl></dd>
</dl></dd>


<!-- ##api level indication## -->
<dt>introduced in:</dt>
<dd>API Level 1</dd>

<dt>see also:</dt>
<dt>see also:</dt>
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html">&lt;activity&gt;</a></code>
<dd><code><a href="{@docRoot}guide/topics/manifest/activity-element.html">&lt;activity&gt;</a></code>
<br/><code><a href="{@docRoot}guide/topics/manifest/service-element.html">&lt;service&gt;</a></code>
<br/><code><a href="{@docRoot}guide/topics/manifest/service-element.html">&lt;service&gt;</a></code>
+5 −1
Original line number Original line Diff line number Diff line
@@ -31,6 +31,10 @@ that they are unique.
</p></dd>
</p></dd>
</dl></dd> 
</dl></dd> 


<!-- ##api level indication## -->
<dt>introduced in:</dt>
<dd>API Level 1</dd>

<dt>see also:</dt>
<dt>see also:</dt>
<dd><code><a href="{@docRoot}guide/topics/manifest/action-element.html">&lt;action&gt;</a></code>
<dd><code><a href="{@docRoot}guide/topics/manifest/action-element.html">&lt;action&gt;</a></code>
<br/><code><a href="{@docRoot}guide/topics/manifest/data-element.html">&lt;data&gt;</a></code></dd>
<br/><code><a href="{@docRoot}guide/topics/manifest/data-element.html">&lt;data&gt;</a></code></dd>
Loading