我用这样的方法添加联系人姓名
                   ContentResolver contentResolver = a.getContentResolver(); ContentValues values = new ContentValues();
// 添加姓名 values.put(Contacts.People.NAME,name); // 映射关系:1 = 新的联系方式加入 favorites0 = 新的联系方式不是加入 favorites values.put(Contacts.People.STARRED,0); Uri uri = Contacts.People.createPersonInMyContactsGroup(contentResolver,values);
//contentResolver.insert(uri,values);
用这样的方法读取联系人姓名
                           String[] phoneProjection = new String[] {
Contacts.Phones.PERSON_ID, Contacts.Phones.NAME }; Cursor phoneCursor = a.getContentResolver().query(
Contacts.Phones.CONTENT_URI, phoneProjection,  null, null, null); 
if (phoneCursor.moveToFirst()) {
// get the results
do {
String id = phoneCursor.getString(phoneCursor
.getColumnIndex(Contacts.Phones.PERSON_ID));
String name = phoneCursor.getString(phoneCursor
.getColumnIndex(Contacts.Phones.NAME));
} while (phoneCursor.moveToNext());
}
可是执行之后能够在手机上通讯录中看到添加的联系人姓名(没有添加手机号码),但是读取的时候读取不到,哪位大哥指导一下。