I use this code to extract all contact names and phone numbers:
String[] projection = new String[] { People.NAME, People.NUMBER }; Cursor c = ctx.getContentResolver().query(People.CONTENT_URI, projection, null, null, People.NAME + " ASC"); c.moveToFirst(); int nameCol = c.getColumnIndex(People.NAME); int numCol = c.getColumnIndex(People.NUMBER); int nContacts = c.getCount(); do {
However, this will only result in a return of the primary number for each contact, but I also want to get secondary numbers. How can i do this?
android phone-number contacts android-contacts
shuwo Mar 01 '10 at 13:31 2010-03-01 13:31
source share