You will be be redirected to the blog in a moment...

Or you can click the link below to proceed:
BlackBerryContact Names

Getting the name of a BlackBerryContact has been been this easy... :)This method takes in a BlackBerryContact as the argument and would return the name as a String.private String getDisplayName(BlackBerryContact contact) {   StringBuffer buf = new StringBuffer();  String[] name = contact.getStringArray(BlackBerryContact.NAME, 0);  //Get the prefix, first and last name  boolean found = false;  String nameseg;  // Catch each field separately to make sure we get any available fields  try {   if((nameseg = name[BlackBerryContact.NAME_PREFIX]) != null && nameseg.length() != 0) {    buf.append(nameseg);    found = true;   }  } catch(IndexOutOfBoundsException ignore) {}  try {   if ((nameseg = name[BlackBerryContact.NAME_GIVEN]) != null && nameseg.length() != 0) {    if(found) {     buf.append(' ')

 

Want to be redirected immediately?
Register yourself at Ping.sg to get rid of this page and also to get your read counted as Pong.