I want to write application which is connected with Contacts.
Scenario :
We choose Contact item
And icon of my application should appear in QuickAction Dialog.
What I have to add to AndroidManifest to do it?
Add this intent filter for your app to be visible for all contacts.
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/name" />
</intent-filter>
Change the mimetype, so that only contacts with a particular data have your activity.
e.g if you want your activity to show only for contacts with email then change mimetype to vnd.android.cursor.item/email_v2
. You can get the mimetype names from the subclasses of DataColumns
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With