Fetching contact field (PIM)
22 May 2008Each contact entry in a PIM Contact database is represented by Contact. This post is all about retrieving contact fields from PIM.
The supported field list for a Contact depends on vCard specification from the Internet Mail Consortium. These set of fields included in this Contact class provides relevant information about a contact. ContactList restricts what fields a Contact can retain. This reflects that some native Contact databases do not support all o the fields available in a Contact item. Time for an example:
// fetching DOB if (contactList.isSupportedField(Contact.BIRTHDAY)) { System.out.println("BirthDay: " + contact.getDate(Contact.BIRTHDAY,0)); } else { System.out.println(“DOB is not supported.”); }
Related Posts:
Top Of Page | Trackback
If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.
It will look like this: Fetching contact field (PIM)