Merge "Minor tweaks to Sharing class, updated some typos, wording and a screenshot." into ics-mr0

This commit is contained in:
Scott Main
2011-12-15 17:36:58 -08:00
committed by Android (Google) Code Review
5 changed files with 10 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -26,9 +26,9 @@ Intent Filters</a></li>
integrate with each other. Why reinvent functionality that isn't core to your application when it
already exists in another application?</p>
<p>This class shows some common ways you can send and receive content between
<p>This class covers some common ways you can send and receive content between
applications using {@link android.content.Intent} APIs and the {@link
android.view.ActionProvider}.</p>
android.view.ActionProvider} object.</p>
<h2>Lessons</h2>
@@ -40,7 +40,7 @@ applications with intents.</dd>
<dt><b><a href="receive.html">Receiving Content from Other Apps</a></b></dt>
<dd>Learn how to set up your application to receive text and binary data from intents.</dd>
<dt><b><a href="shareaction.html">Adding an Easy Share Action</a></b></dt>
<dd>Learn how to add a "share" action item to your action bar.</dd>
</dl>

View File

@@ -43,8 +43,8 @@ new Google+ post with photos from the Android Gallery app.</p>
<h2 id="update-manifest">Update Your Manifest</h2>
<p>Intent filters inform the system what intents an application component is willing to accept.
Just as you constructed an intent with action {@link android.content.Intent#ACTION_SEND} in the
<a href="{@docRoot}training/sharing/send.html">Send Content to Other Apps Using Intents</a>
Similar to how you constructed an intent with action {@link android.content.Intent#ACTION_SEND} in
the <a href="{@docRoot}training/sharing/send.html">Send Content to Other Apps Using Intents</a>
lesson, you create intent filters in order to be able to receive intents with this action. You
define an intent filter in your manifest, using the
<code><a
@@ -78,9 +78,9 @@ Filters</a></p>
<p>When another application tries to share any of these things by constructing an intent and passing
it to {@link android.content.Context#startActivity(android.content.Intent) startActivity()}, your
application will be listed as an option in the intent chooser (see figure 1). If the user selects
your application, the corresponding activity (<code>.ui.MyActivity</code> in the example above) will
be started. It is then up to you to handle the content appropriately within your code and UI.</p>
application will be listed as an option in the intent chooser. If the user selects your application,
the corresponding activity (<code>.ui.MyActivity</code> in the example above) will be started. It
is then up to you to handle the content appropriately within your code and UI.</p>
<h2 id="handling-content">Handle the Incoming Content</h2>

View File

@@ -40,7 +40,7 @@ from other applications by specifying them in your manifest.</p>
<p>Sending and receiving data between applications with intents is most commonly used for social
sharing of content. Intents allow users to share information quickly and easily, using their
favorite social applications.</p>
favorite applications.</p>
<p><strong>Note:</strong> The best way to add a share action item to an
{@link android.app.ActionBar} is to use {@link android.widget.ShareActionProvider}, which became

View File

@@ -109,7 +109,7 @@ private void setShareIntent(Intent shareIntent) {
want to set it and then update it as the UI changes. For example, when you view photos full screen
in the Gallery app, the sharing intent changes as you flip between photos.</p>
<p>For further discussion about the {@link android.widget.ShareActionProvider}, see the <a
<p>For further discussion about the {@link android.widget.ShareActionProvider} object, see the <a
href="{@docRoot}guide/topics/ui/actionbar.html#ActionProvider">Action Bar</a> guide.</p>