how did you get the numer from the addressbook in the first place?
the last time i tried the only working method was to get an email from it.
here is some code about grabbing the numbers from a contact, DialogNumberChooseItem is just a bean with number and description in it
Code:
results = new Vector();
BlackBerryContact contact = (BlackBerryContact) context;
int numValues = contact.countValues(BlackBerryContact.TEL);
for (int i = 0; i < numValues; i++) {
if (contact.getAttributes(BlackBerryContact.TEL, i) == Contact.ATTR_WORK) {
results.addElement(new DialogNumberChooseItem(resources.getString(WORK), contact.getString(BlackBerryContact.TEL, i)));
} else if (contact.getAttributes(BlackBerryContact.TEL, i) == BlackBerryContact.ATTR_HOME) {
results.addElement(new DialogNumberChooseItem(resources.getString(HOME), contact.getString(BlackBerryContact.TEL, i)));
} else if (contact.getAttributes(BlackBerryContact.TEL, i) == BlackBerryContact.ATTR_MOBILE) {
results.addElement(new DialogNumberChooseItem(resources.getString(MOBILE), contact.getString(BlackBerryContact.TEL, i)));
} else if (contact.getAttributes(BlackBerryContact.TEL, i) == BlackBerryContact.ATTR_OTHER) {
results.addElement(new DialogNumberChooseItem(resources.getString(OTHER), contact.getString(BlackBerryContact.TEL, i)));
}
}