3

Possible Duplicate:
Android Share Via Dialog

For example, when you hit share photo, it gives you a list of options to share through (Instagram, Messaging, Gmail, etc.). I want my app to appear under these 'share' options after it is installed to the device.

I tried searching for it on Google, but I'm unfamiliar with any of the terminology so my search result terms are worded too strangely to be specific.

Community
  • 1
  • 1
Isaac Askew
  • 1,281
  • 2
  • 17
  • 30
  • 2
    @ArtemStorozhuk, @Sam, @Jaguar It is not `possible duplicate` of question on the link, it is different question! – Jemshit Nov 18 '15 at 12:22

3 Answers3

7

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>
Flávio Faria
  • 6,575
  • 3
  • 39
  • 59
2

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.

Community
  • 1
  • 1
yDelouis
  • 2,094
  • 17
  • 18
0

Read Adding an Easy Share action

Joe Malin
  • 8,621
  • 1
  • 23
  • 18