Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add link for my application from contacts quick menu

I want to write application which is connected with Contacts.

Scenario :

  1. Enter to phone Contacts
  2. We choose Contact item

enter image description here

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

  3. My app will open.

This is where I got so far: 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>

The result is that I can see MyApp icon for all contacts instead of just these with phone numbers and when I select it I can see the contact name instead of its available numbers.

enter image description here

What I have to add to AndroidManifest in order do to see the contacts phone numbers or put a custom text there?

  • Adding my own contacts with new MIMETYPE is not an option for me...
like image 325
Asaf Pinhassi Avatar asked Dec 21 '12 10:12

Asaf Pinhassi


1 Answers

Check my question/answer that may help you, did work for me.

Integrate my app with Contact

Hope that helps

like image 108
vsm Avatar answered Sep 19 '22 23:09

vsm