查找系统中的分组信息,比较简单,写下来分享一下~
Cursor cursor = getContentResolver().query(
ContactsContract.Groups.CONTENT_URI, null,null, null, null);
while (cursor.moveToNext()) {
String title = cursor
.getString(cursor
.getColumnIndex(ContactsContract.Groups.TITLE));
Log.v("GROUP TITLE", title);
}
cursor.close();