Orada zaten isim numara ve email i çekiyor bana nickName lazımdı.
Teşekkür ederim.
[code]
Cursor Nickcursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, ContactsContract.Contacts._ID +" = ?", new String[]{contact_id}, null);
while (Nickcursor.moveToNext()) {
String where = ContactsContract.Data.CONTACT_ID + " = ? AND " + ContactsContract.Data.MIMETYPE + " = ?";
String[] params = new String[] {contact_id, ContactsContract.CommonDataKinds.Nickname.CONTENT_ITEM_TYPE};
Cursor nickname = getContentResolver().query(ContactsContract.Data.CONTENT_URI, null, where, params, null);
while (nickname.moveToNext()) {
String nicknameName = nickname.getString(nickname.getColumnIndex(ContactsContract.CommonDataKinds.Nickname.NAME));
output.append("Nickname:" + nicknameName);
}
nickname.close();
}
[/code]
Şu şekilde çözdüm onuda.