04-18-2010 07:35 PM - edited 04-18-2010 07:37 PM
I want to add phone numbers and email addresses to home, work, and other "profiles", which it looks like the PIM infrastructure supports. I have code like this:
if(prof.email.length() > 0)
matchRemoveValues(c, Contact.EMAIL, attr);
c.addString(Contact.EMAIL, attr, prof.email);
where prof.email is a string with an email address and attr is one of Contact.ATTR_HOME, Contact.ATTR_WORK, or Contact.ATTR_OTHER. There is an identical snippet for mobile phone numbers.
When I go look in the "Contacts" address book, this is what I've added:
The phone numbers themselves have gone into the right places (so do addresses; I tried that, too) but there's no Work Mobile, Work Email, Home Mobile, Home Email, etc., and the corresponding phone numbers appear to be stuck in random places, like "Pager", for which I entered nothing. That last email should have been "Other Email", and the last "Other" should have been "Other Mobile", among "other" (no pun intended) anomalies.
Am I missing something here?
04-19-2010 04:05 AM
from one of my util classes: