I see around it’s a recurring question regarding ACTION_SEND and which filters to use, but I can promise I searched for this.
The app development is going fine and for my testings until now I’ve been using images and videos:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<data android:mimeType="image/*" />
<data android:mimeType="video/*" />
</intent-filter>
but now I would like to expand the app to accept ANY file (no matter what type it is), contacts (there’s an option to share contact on the Contacts app) and URL (usually sent from the Browser).
for the URL I saw people using the Text before <data android:mimeType="text/plain" /> but I sounds to me like a very generic approach for a very specific char sequence.
any ideas?
thanks!
I found out how to do it:
from this thread: https://stackoverflow.com/a/10161863/906362
Why it needs the category.DEFAULT I don’t know, but without it, it will only work for the gallery.