将SD卡图像设置为ImageView?

时间:2016-06-30 05:41:45

标签: android

我在removeUser(credentials, [onComplete]) 中有一张图片我想从SD card拍摄图片并设置在SD card。请帮助我们,我们尝试了以下代码。

我的代码:

ImageView

1 个答案:

答案 0 :(得分:3)

 File pictureFile = new File("Path to your image");
 Bitmap bitmap = BitmapFactory.decodeFile(pictureFile.getAbsolutePath());
 mImage.setImage(bitmap);
相关问题