Add this intent filter so that your application is visible to 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 type so that your contacts only have contacts with specific data.
For example, if you want your activity to be shown only for email contacts, change mimetype to vnd.android.cursor.item/email_v2 . You can get mimetype names from subclasses of DataColumns
source share