Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.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
Java 尝试使用BitmapFactory.decodeStream()加载某些图像后出现FileNotFoundException_Java_Android_Bitmap_Photos_Picturegallery - Fatal编程技术网

Java 尝试使用BitmapFactory.decodeStream()加载某些图像后出现FileNotFoundException

Java 尝试使用BitmapFactory.decodeStream()加载某些图像后出现FileNotFoundException,java,android,bitmap,photos,picturegallery,Java,Android,Bitmap,Photos,Picturegallery,我有以下代码: InputStream stream = context.getActivity().getContentResolver().openInputStream(data.getData()); bitmap = BitmapFactory.decodeStream(stream); stream.close(); 一切正常,但某些文件(具有begin path/0/file…)会抛出[object BitmapData]为null的FileNotFoundExceptio

我有以下代码:

 InputStream stream = context.getActivity().getContentResolver().openInputStream(data.getData());
 bitmap = BitmapFactory.decodeStream(stream);
 stream.close();
一切正常,但某些文件(具有begin path/0/file…)会抛出[object BitmapData]为null的FileNotFoundException

我哪里出错了

编辑-----------------------------------------


我的解决方案是在照片g+图库浏览器中刷新

路径能否以/0/文件开头?是的,只有这个文件没有加载解决方案只是刷新我的