I use ActionBarSherlock in the application along with ShareActionProvider. I use a shared resource to share images in a way very similar to the ActionBarSherlock example :
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
shareIntent.setType("image/*");
Everything works correctly, the only problem is that my application also accepts the general content of the image ("image / *"), so it appears in the list of applications. Anyway, around?
EDIT:
Here are my target filters:
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="image/*"/>
</intent-filter>
source
share