How to get Contact numbers by contact name using blackberry api
问题 How to get all contact numbers for a Contact when searching by contact name. Given a contact name how can we search the address book and get all the contact numbers associated with the contact. 回答1: get the contact list and search for your contact name between the contacts BlackBerryContactList contList = (BlackBerryContactList)PIM.getInstance().openPIMList(PIM.CONTACT_LIST,PIM.READ_ONLY); Enumeration er = contList.items(); while (er.hasMoreElements()) { BlackBerryContact c =