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
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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>
回答2:
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.