Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add my Android App to Share Dialog?

I want to add my App to "Share via" Dialog. How can I do this?

like image 750
Mark Avatar asked Feb 25 '23 00:02

Mark


1 Answers

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

<intent-filter>
  <action android:name="android.intent.action.SEND" />
  <data android:mimeType="audio/*" />
</intent-filter>
like image 130
Asahi Avatar answered Mar 06 '23 07:03

Asahi