Android - how to implement a share button with a message?
<p>I am trying to implement a simple share action that would show the user a menu of Facebook, twitter, and email where they can share a set message I pre-set like "I am using a great app on <a href="http://www.xyz.com" rel="nofollow">http://www.xyz.com</a></p>

<p>What I have so far is the styling:</p>

<pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:id="@+id/menu_share"
          android:title="@string/share"
          android:showAsAction="ifRoom"
          android:actionProviderClass="android.widget.ShareActionProvider" /&gt;
&lt;/menu&gt; 
</code></pre>

<p>and I see many examples like this online:</p>

<pre><code>Intent intent=new Intent(android.content.Intent.ACTION_SEND);
intent.setType("text/plain");
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);

// Add data to the intent, the receiving app will decide what to do with it.
intent.putExtra(Intent.EXTRA_SUBJECT, “Some Subject Line”);
intent.putExtra(Intent.EXTRA_TEXT, “Body of the message, woot!”);   
</code></pre>

<p>But that just opens the email.  But how would I open that menu with all the possible places the text and link can be shared?</p>

<p>Thanks!</p>
