Cannot click the ShareActionProvider in Action Bar?
<p>I am using the following code on a API 15 (Galaxy Nexus) avdevice</p>

<p>The menu_share.xml</p>

<pre><code>    &lt;item
    android:id="@+id/menu_share"
    android:actionProviderClass="android.widget.ShareActionProvider"
    android:showAsAction="ifRoom"
    android:title="Share"/&gt;
&lt;item
    android:id="@+id/item1"
    android:orderInCategory="20"
    android:showAsAction="always|collapseActionView"
    android:title="Refresh"&gt;
&lt;/item&gt;
</code></pre>

<p>The main activity looks like this </p>

<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);

    // Get the ActionProvider
    provider = (ShareActionProvider) menu.findItem(R.id.menu_share)
        .getActionProvider();
    // Initialize the share intent
    intent = new Intent(Intent.ACTION_SEND);

    intent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
    intent.setType("text/plain");
    provider.setShareIntent(intent);
    return true;
}
</code></pre>

<p>When I run it on a API 15 (Galaxy Nexus) avd it shows me only the following icon that I cannot click (although it should show me at least the messageing app).</p>

<p><img src="http://i.stack.imgur.com/FGBsS.png" alt="API15"></p>

<p>When I run the same code on a API 17 tablet avd I can start the Messaging app offered by the SharedActionProvider - it looks like this </p>

<p><img src="http://i.stack.imgur.com/PrME2.png" alt="enter image description here"></p>

<p>On the tablet how can I make the Messageing app to show in the dropdown list instead like this and how to make the shared action provider on the API15 AVD clickable (first image)?</p>

<p>Thanks. </p>
