I have this declared in my AndroidManifest.xml:
<activity
android:name="x.y.z.MyActivity"
android:label="@string/app_name"
android:theme="@style/MyTheme" >
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
What I am trying to do is to register my activity for sharing of images from other apps. This works for normal images from the Gallery but my app doesn't appear as option for sharing of images from the Gallery that are up on Picasa. I'm not sure what else to add to my intent-filter to cover also this use case.
I've used Intent Intercept app to intercept the intent from the Gallery.
Unfortunately I see that the mime type is text/plain and there is an extra that contains the link to the image. I can't use this mime type because my app is only able to handle images and not text (the app might show up in apps that share text and obviously I don't want that).
Short answer: this cannot be done if you don't also implement sharing of text.