Hi, I was wondering if there is a way to get a group name and all the contacts - name and number in that group. I figured out below how to loop through the groups but I have been unable to tie this to contact names and number.
Any help is appreciated. Thanks *final* String[] GROUP_PROJECTION = *new* String[] { ContactsContract.Groups.*_ID*, ContactsContract.Groups.*TITLE* }; Cursor groupCursor = managedQuery(ContactsContract.Groups.*CONTENT_URI*, GROUP_PROJECTION, *null*, *null*, ContactsContract.Groups.*TITLE* + " ASC"); *if*(groupCursor.moveToFirst()) { *final* *int* groupIDColumnIndex = groupCursor.getColumnIndex(ContactsContract.Groups.*_ID*); *final* *int* groupTitleColumnIndex = groupCursor.getColumnIndex(ContactsContract.Groups.*TITLE*); *while*(!groupCursor.isAfterLast()) { String *groupID* = groupCursor.getString(groupIDColumnIndex); *final* String *name* = groupCursor.getString(groupTitleColumnIndex); } groupCursor.close(); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en