Is it OK to read from your address book?
My compiled software is running inside emulator and make this question:
"Vendas" want to read data from the address book.
Is it OK to read from your address book?
I had look at security options and enabled all related to
javax.microedition.pim.*;
read & write.
The code is something like this:
ContactList rsContact;
Contact reg;
String tbCliente;
try{
rsContact = (ContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
reg = rsContact.createContact();
reg.setString(reg.NAME,0,0, "Willian");
reg.setInt(reg.ATTR_MOBILE,0,0,91628541);
reg.commit();
reg = rsContact.createContact();
reg.setString(reg.NAME,0,0, "Wilton");
reg.setInt(reg.ATTR_MOBILE,0,0,34761749);
reg.commit();
rsContact.close();
}catch(PIMException err){
err.printStackTrace();
};
Anyone can help?
Thanks.





