Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
BitmapFactory.decodeFile在android中返回null_File_Uiimageview_Decode_Android Bitmap_Bitmapfactory - Fatal编程技术网

BitmapFactory.decodeFile在android中返回null

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()); 你能帮我吗

我想显示SD卡路径中的图像。我可以在SD卡中写入和读取图像。我也可以在sd卡保存的目录中看到图像。但如果我在下面的行中给出我的文件路径,我总是得到空值

Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
你能帮我吗