Please i need help in getting the contacts stored in my sim card, if it can be done. I have tried the code below but it only gets contacts stored in the Phone's Internal memory. I've test the j2me build in my Nokia 5370c, but am not pleased with the result.
String[] contactsId = ContactsManager.getAllContacts();
for(String cid:contactsId){
Contact c = ContactsManager.getContactById(cid);
Object[] phones = c.getPhoneNumbers().values().toArray();
String phos = "";
for(Object phoo:phones){
phos = phos+(String)phoo+",";
}
phos = phos.substring(0, phos.length() - 1);
String contact = c.getFamilyName()+" "+c.getFirstName()+"["+phos+"]";
System.out.println(contact);
}