BitmapFactory.decodeFile在android中返回null
我想显示SD卡路径中的图像。我可以在SD卡中写入和读取图像。我也可以在sd卡保存的目录中看到图像。但如果我在下面的行中给出我的文件路径,我总是得到空值BitmapFactory.decodeFile在android中返回null,file,uiimageview,decode,android-bitmap,bitmapfactory,File,Uiimageview,Decode,Android Bitmap,Bitmapfactory,我想显示SD卡路径中的图像。我可以在SD卡中写入和读取图像。我也可以在sd卡保存的目录中看到图像。但如果我在下面的行中给出我的文件路径,我总是得到空值 Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath()); 你能帮我吗
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
你能帮我吗