Fetching contact field (PIM)

22 May 2008

Each 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.”);
}

del.icio.us:Fetching contact field (PIM)  digg:Fetching contact field (PIM)  spurl:Fetching contact field (PIM)  wists:Fetching contact field (PIM)  simpy:Fetching contact field (PIM)  newsvine:Fetching contact field (PIM)  blinklist:Fetching contact field (PIM)  furl:Fetching contact field (PIM)  reddit:Fetching contact field (PIM)  fark:Fetching contact field (PIM)  blogmarks:Fetching contact field (PIM)  Y!:Fetching contact field (PIM)  smarking:Fetching contact field (PIM)  magnolia:Fetching contact field (PIM)  segnalo:Fetching contact field (PIM)  gifttagging:Fetching contact field (PIM)

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)

Leave a Reply