最佳答案
我想从画廊得到图像。
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select picture"), resultCode );
After I returned from this activity I have a data, which contains Uri. It looks like:
content://media/external/images/1
如何将这个路径转换为真正的路径(就像‘ /sdcard/image.png
’) ?
谢谢