String selection = ContactsContract.Groups.DELETED + "=? and " + ContactsContract.Groups.GROUP_VISIBLE + "=?";
String[] selectionArgs = { "0", "1" };
Cursor cursor = mCtx.getContentResolver().query(ContactsContract.Groups.CONTENT_URI, null, selection, selectionArgs, null);
cursor.moveToFirst();
int len = cursor.getCount();
String kGroupId = null;
for (int i = 0; i < len; i++)
{
String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Groups._ID));
String title = cursor.getString(cursor.getColumnIndex(ContactsContract.Groups.TITLE));
Log.w("###", id + " | " + title);
cursor.moveToNext();
}
cursor.close();
주소록의 그룹 리스트를 구하는중인데
제폰에서 실행했는데
좀 이상하게나옵니다
첫번째 그룹아이디 1 은 그룹의 이름(타이틀)이 나오는데
두번째 그룹아이디 2 부터는 내가모르는 영어이름으로 이상하게나옵니다
MyContacts
Friends
Family
...
등으로 그룹이로 지정되지않은이름들이 나타납니다
코드에 무슨문제가 있나요
함 살펴봐주심 감사하겠습니다
좀 이상합니다
그룹이름이 첫번째는 제대로 나타나고
두번째부터 나타나는것이
MyContacts 는 내주소록
Friends 친구들
Family 가족
...
이렇게 영어로 나타나는데
실제 안드로이드 기본 주소록에서보면
한글로
내주소록
친구
가족
...
이렇게나타납니다
왜 제앱에서는 영어로 전환되어나타나는걸까요?