Intent-Filter for Whatsapp -> share image

浪尽此生 提交于 2020-01-01 00:46:10

问题


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.



来源:https://stackoverflow.com/questions/10301413/intent-filter-for-whatsapp-share-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!