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