为什么我查不到 log日志也打不出来
ContentResolver contentResolver = getContentResolver();
Uri uri = Uri.parse("content://com.android.contacts/raw_contacts"); //访问raw_contacts表
//2.查询系统联系人数据库
Cursor cursor = contentResolver.query(
uri,
new String[]{"contact_id"},
null,null,null);
//3.循环游标
while (cursor.moveToNext()){
String id = cursor.getString(0);
Log.i(tag,"id="+id);
}
cursor.close();