am a055e5e: AI 147742: close <code> tag and remove some bolding
Merge commit 'a055e5ea1d87a958cc2c0ea82fe7026b205578b9' into donut * commit 'a055e5ea1d87a958cc2c0ea82fe7026b205578b9': AI 147742: close <code> tag and remove some bolding
This commit is contained in:
committed by
The Android Open Source Project
commit
9dfad65f76
@@ -55,19 +55,19 @@ class to aid in handling the broadcasts.
|
|||||||
{@sample frameworks/base/tests/appwidgets/AppWidgetHostTest/AndroidManifest.xml AppWidgetProvider}
|
{@sample frameworks/base/tests/appwidgets/AppWidgetHostTest/AndroidManifest.xml AppWidgetProvider}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The <b><code><receiver></b> element has the following attributes:
|
The <code><receiver></code> element has the following attributes:
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><code>android:name</code> -</b> which specifies the
|
<li><code>android:name</code> - specifies the
|
||||||
{@link android.content.BroadcastReceiver} or {@link android.appwidget.AppWidgetProvider}
|
{@link android.content.BroadcastReceiver} or {@link android.appwidget.AppWidgetProvider}
|
||||||
class.</li>
|
class.</li>
|
||||||
<li><b><code>android:label</code> -</b> which specifies the string resource that
|
<li><code>android:label</code> - specifies the string resource that
|
||||||
will be shown by the widget picker as the label.</li>
|
will be shown by the widget picker as the label.</li>
|
||||||
<li><b><code>android:icon</code> -</b> which specifies the drawable resource that
|
<li><code>android:icon</code> - specifies the drawable resource that
|
||||||
will be shown by the widget picker as the icon.</li>
|
will be shown by the widget picker as the icon.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The <b><code><intent-filter></b> element tells the {@link android.content.pm.PackageManager}
|
The <code><intent-filter> element tells the {@link android.content.pm.PackageManager}
|
||||||
that this {@link android.content.BroadcastReceiver} receives the {@link
|
that this {@link android.content.BroadcastReceiver} receives the {@link
|
||||||
android.appwidget.AppWidgetManager#ACTION_APPWIDGET_UPDATE AppWidgetManager.ACTION_APPWIDGET_UPDATE} broadcast.
|
android.appwidget.AppWidgetManager#ACTION_APPWIDGET_UPDATE AppWidgetManager.ACTION_APPWIDGET_UPDATE} broadcast.
|
||||||
The widget manager will send other broadcasts directly to your widget provider as required.
|
The widget manager will send other broadcasts directly to your widget provider as required.
|
||||||
@@ -75,13 +75,13 @@ It is only necessary to explicitly declare that you accept the {@link
|
|||||||
android.appwidget.AppWidgetManager#ACTION_APPWIDGET_UPDATE AppWidgetManager.ACTION_APPWIDGET_UPDATE} broadcast.
|
android.appwidget.AppWidgetManager#ACTION_APPWIDGET_UPDATE AppWidgetManager.ACTION_APPWIDGET_UPDATE} broadcast.
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The <b><code><meta-data></code></b> element tells the widget manager which xml resource to
|
The <code><meta-data></code> element tells the widget manager which xml resource to
|
||||||
read to find the {@link android.appwidget.AppWidgetProviderInfo} for your widget provider. It has the following
|
read to find the {@link android.appwidget.AppWidgetProviderInfo} for your widget provider. It has the following
|
||||||
attributes:
|
attributes:
|
||||||
<ul>
|
<ul>
|
||||||
<li><b><code>android:name="android.appwidget.provider"</code> -</b> identifies this meta-data
|
<li><code>android:name="android.appwidget.provider"</code> - identifies this meta-data
|
||||||
as the {@link android.appwidget.AppWidgetProviderInfo} descriptor.</li>
|
as the {@link android.appwidget.AppWidgetProviderInfo} descriptor.</li>
|
||||||
<li><b><code>android:resource</code> -</b> is the xml resource to use as that descriptor.</li>
|
<li><code>android:resource</code> - is the xml resource to use as that descriptor.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user