I've been tryin to develop an app which requires to access contacts from SIM memory. Here is the code i've used but there is runtime exception.
{
Uri simUri = Uri.parse("content://icc/adn");
c=getContentResolver().query(simUri, null, null, null, null);
startManagingCursor(c);
getContacts();
}
private void getContacts(){
int i=0;
do {
// Get the field values
names[i++] = c.getString(0);
} while (c.moveToNext());
Any answers and solutions are appreciated. Along with that could you please tell me the exact URI to access sim card contacts?? And is there any name for colums in the sim's contacts memory table?