Intent-Filter for Whatsapp -> share image
-
03-06-2021 - |
Question
If you try to share an Image with Whatsapp, it will give you a list where you can choose: like Camera,Gallery etc. now i would like to place my app in this list. I Saw some apps like "paint for whatsapp" where this was possible. I tried "android.media.action.IMAGE_CAPTURE" but this only replaces the System-Camera. I want to have a new point in the List. Thanks in advance Jonas
La solution
This works for me:
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
Autres conseils
You can create your own Intent-Action or appear in other lists when using different itentfilter configurations, see http://developer.android.com/guide/topics/intents/intents-filters.html for more details.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow