How can I add my Android app for the Share dialog?

I want to add my application to the Share via dialog. How can i do this?

+4
source share
2 answers

You need to add an intent filter to the manifest file, specifying the action and mime type that your application should process. Something like that:

<intent-filter> <action android:name="android.intent.action.SEND" /> <data android:mimeType="audio/*" /> </intent-filter> 
+7
source

You must add the appropriate Intent filter to your activity. This should be if I am not mistaken:

 <action android:name="android.intent.action.SEND" /> 
+1
source

Source: https://habr.com/ru/post/1340776/


All Articles