android通過(guò)Uri.getPath()獲取真實(shí)路徑我正試圖從畫(huà)廊獲取圖像。Intent intent = new Intent();intent.setType("image/*");intent.setAction(Intent.ACTION_GET_CONTENT);startActivityForResult(Intent.createChooser(intent, "Select picture"), resultCode );從這個(gè)活動(dòng)返回后,我有一個(gè)包含Uri的數(shù)據(jù)??雌饋?lái)像:content://media/external/images/1如何將此路徑轉(zhuǎn)換為真實(shí)路徑(就像' /sdcard/image.png')?謝謝
android通過(guò)Uri.getPath()獲取真實(shí)路徑
郎朗坤
2019-08-06 17:06:02