1 // 查询联系人数据 2 cursor = getContentResolver().query( 3 ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 4 null, null, null, null); 5 while (cursor.moveToNext()) { 6 // 获取联系人姓名 7 String displayName = cursor.getString(cursor.getColumnIndex( 8 ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME)); 9 // 获取联系人手机号10 String number = cursor.getString(cursor.getColumnIndex(11 ContactsContract.CommonDataKinds.Phone.NUMBER));12 }