I want to write an application that is related to contacts.
Scenario:
- Entering the phone Contacts
- We choose a contact item.

- Click on MyApp (the icon should be available only for contacts with numbers)
See contact numbers so the user can click one of them.
My application will open.
Here is where I got: I added the following to the manifest file:
<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>
As a result, I see the MyApp icon for all contacts, not just phone numbers, and when I select it, I can see the name of the contact instead of its available numbers.

What do I need to add to AndroidManifest to see the phone numbers of contacts or to place special text there?
- Adding my own contacts with the new MIMETYPE is not an option for me ...
source share