AI 144405: am: CL 144307 am: CL 144306 Fix SDK issue 1716562 - Broadcast mechanism documentation should be improved.
Original author: ctate Merged from: //branches/cupcake/... Original author: android-build Automated import of CL 144405
This commit is contained in:
committed by
The Android Open Source Project
parent
5cb6f988b2
commit
a34df8a2ba
@@ -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-filer></a></code>
|
||||
<dd><code><a href="{@docRoot}guide/topics/manifest/intent-filter-element.html"><intent-filter></a></code>
|
||||
<br/><code><a href="{@docRoot}guide/topics/manifest/meta-data-element.html"><meta-data></a></code></dd>
|
||||
|
||||
<dt>description:</dt>
|
||||
@@ -47,10 +47,16 @@ 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>} 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>
|
||||
{@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>
|
||||
|
||||
<dt><a name="exported"></a>{@code android:exported}</dt>
|
||||
<dd>Whether or not the broadcast receiver can receive messages from sources
|
||||
@@ -117,9 +123,12 @@ 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>
|
||||
|
||||
Reference in New Issue
Block a user