How to add a link for my application from the quick contact menu

I want to write an application that is related to contacts.

Scenario:

  • Entering the phone Contacts
  • We choose a contact item.

enter image description here

  1. Click on MyApp (the icon should be available only for contacts with numbers)
  2. See contact numbers so the user can click one of them.

  3. 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.

enter image description here

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 ...
+6
source share
2 answers

Check out my question / answer that might help you, worked for me.

Integrating my application with a contact

Hope that helps

+3
source

Try using this mime type "vnd.android.cursor.item / phone_v2" instead of "vnd.android.cursor.item / name"

+1
source

All Articles