老师我用mi3真机调试的,uri路径正常,cursor为啥为空呢?
if(requestCode==IMAGE_CODE){//确保拿到的是我们发送的请求 if(intent!=null){ Uri uri = intent.getData(); Log.i(TAG, "ur路径 "+uri); Cursor cursor = getContentResolver().query(uri, null, null, null, null); if(cursor==null){ Log.i(TAG, "cursor为空"); }