Android Contacts Database Giving Me An Exception
Whenever I try to access the number of a contact I get an index out of bounds exception, can anyone please tell me what I am doing wrong here. Members of the class private String[]
Solution 1:
Try adding
cur.moveToFirst();
before your while loop, and changing while(){}
to do{} while()
edit: do the same with phones
cursor:
add
phone.moveToFirst();
before your try{} statement.
Post a Comment for "Android Contacts Database Giving Me An Exception"