I'm trying to launch my activity from the QuickContactBadge. I have managed to add an icon there using the following in my manifest:
<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>
Two issues though:
When I click the icon, contact name is displayed (and I suspect that the same will be passed to the activity). I want the phone number to be displayed. I have tried the following but without any luck: "vnd.android.cursor.item/phone", "vnd.android.cursor.dir/phone", "vnd.android.cursor.item/phone_v2", "vnd.android.cursor.dir/phone_v2"
How can I change the icon shown in the badge?
I have found a similar post here but it doesn't provide a satisfactory solution.