0
我有一个URI
路径,我想在ImageView
中显示图像。从uri路径显示图像
到目前为止,我已经做到了这一点:
ImageView imageView = (ImageView)findViewById(R.id.imageView);
Uri imgUri = Uri.parse("/external/images/media/20066");
imageView.setImageURI(null);
imageView.setImageURI(imgUri);
但没有奏效。我是Android新手。有人能帮我吗?
你从哪儿弄来的这条道路? – greenapps
你的图像存储在SD卡或断言文件夹? –
尝试使用路径Environment.getExternalStorageDirectory()+ “/图片/媒体/ 20066” – nnesterov