How do I add my app to the Android 'share photo' option? [duplicate]

时光毁灭记忆、已成空白 提交于 2019-12-01 00:32:26

Add this intent filter to your activity in the manifest:

<intent-filter>
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
yDelouis

See this question on StackOverflow. In the question you will see what you have to add to the manifest and in the first answer you will find how to retreive the data in your activity.

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