Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add add icons and Intents in the QuickContactBadge menu for my android program?

I'm a writing a program to add a new way of communication such as MMS/SMS or SIP phone to Android.

Is there a way to add an icon in the QuickContactBadge menu, when clicking on a contact photo in the Contacts application ?

I wasn't able to fully understand how it works from android sources ... Is the list of icons only populated from mime types found in contacts datas ?

Thanks,

Laurent

like image 358
laurentsebag Avatar asked May 14 '10 14:05

laurentsebag


2 Answers

Yes, it is based on mime type in the contact.

The QuickContact list is built from the MIME-types associated with the contacts Data records, so as far as I know there’s no way for your app to appear in the QC list without having added a record to the data table using a sync provider....

-Sam Steele

from the comments here.

like image 85
aprock Avatar answered Nov 03 '22 21:11

aprock


There is an open source project that let's you implement your own QuickActionBar, take a look: http://code.google.com/p/devoquickaction/

It's look very much like the native one. Just in case working with or adding mime types is not what you have in mind and you'd want to add your entirely individual icon/action set to a contact.

like image 24
Mathias Conradt Avatar answered Nov 03 '22 21:11

Mathias Conradt