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 integrate with each other. Why reinvent functionality that isn't core to your application when it
already exists in another application?</p> 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 applications using {@link android.content.Intent} APIs and the {@link
android.view.ActionProvider}.</p> android.view.ActionProvider} object.</p>
<h2>Lessons</h2> <h2>Lessons</h2>

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> <h2 id="update-manifest">Update Your Manifest</h2>
<p>Intent filters inform the system what intents an application component is willing to accept. <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 Similar to how you constructed an intent with action {@link android.content.Intent#ACTION_SEND} in
<a href="{@docRoot}training/sharing/send.html">Send Content to Other Apps Using Intents</a> 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 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 define an intent filter in your manifest, using the
<code><a <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 <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 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 application will be listed as an option in the intent chooser. If the user selects your application,
your application, the corresponding activity (<code>.ui.MyActivity</code> in the example above) will the corresponding activity (<code>.ui.MyActivity</code> in the example above) will be started. It
be started. It is then up to you to handle the content appropriately within your code and UI.</p> 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> <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 <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 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 <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 {@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 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> 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> href="{@docRoot}guide/topics/ui/actionbar.html#ActionProvider">Action Bar</a> guide.</p>