Reputation: 5656
I'm looking to add my app to the popup menu that appears when you choose to a share a contact from the phone contacts app.
Upvotes: 0
Views: 957
Reputation: 5656
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/x-vCard"/>
<data android:mimeType="text/x-vcard"/>
</intent-filter>
Upvotes: 1
Reputation: 14472
You need to register an intent filter in our manifest.
http://developer.android.com/guide/topics/intents/intents-filters.html
Try this:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/contact" android:host="com.android.contacts"/>
</intent-filter>
Upvotes: 0