How could I get contact list from BlackBerry? (BB 7290, OS 4.1.X)
Code:
Enumeration enu = contactList.items();
while(enu.hasMoreElements()){ //has element
BlackBerryContact contact =(BlackBerryContact)enu.nextElement(); //success got contact
System.out.println("--------------contace="+contact);
System.out.println(contact.getString(Contact.UID,0)); //Get NULL poiter
System.out.println(contact.getString(Contact.FORMATTED_NAME,0)); //Get NULL pointer
}