I've added the intent-filter. And when I tap "share" in the Gallery, it will launch my activity.
<intent-filter>
<action
android:name="android.intent.action.SEND" />
<category
android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="image/*" />
</intent-filter>
But I don't know how to get the correct data from the current intent. Any helps?
EDIT: Sorry, missing "picture" in the question