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

Or you can click the link below to proceed:
BlackBerryContact Phone Numbers

Retrieving BlackBerryContact phone numbers and the labels then showing it in a dialog to let user to choose.BlackBerryContact c;Find out the number of phone numbers saved under a contactc.countValues(BlackBerryContact.TEL);Setup variables to hold the numbers and their labels.phoneNumbers = new String[phoneCount];labels = new String[phoneCount];String label = "";Go through a loop to get the numbers and find out the labelfor(int i = 0; i < phoneCount; i++){//Fetch the phone numberString phoneNumber = c.getString(BlackBerryContact.TEL, i);//Determine the label for that numberif(c.getAttributes(BlackBerryContact.TEL,i) == BlackBerryContact.ATTR_MOBILE){label = "mobile";}else if(c.getAttributes(BlackBerryContact.TEL,i) == BlackBerryContact.ATTR_WORK){label = "work";}else if(c.getAttributes(BlackBerryContact.TEL,i) == BlackBerryContact.ATTR_HOME){label = "home";}//Add the number and label to the array.phoneNumbers[i] = phoneNumber;labels[i] = label;}//end of for loopDisplay the number in a Dialog.askStringBuffer s

 

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.