FileNotFoundException after attempting to load some images with BitmapFactory.decodeStream()

68 Views Asked by At

I have the following code:

 InputStream stream = context.getActivity().getContentResolver().openInputStream(data.getData());
 bitmap = BitmapFactory.decodeStream(stream);
 stream.close();

Everything works fine, but some files, with begin path "/0/file...", throws a FileNotFoundException with [object BitmapData] null.

Where am I making mistake?

EDIT ----------------------------------------------------------------------------------

Solution for me was to refresh in Photos (g+ gallery browser)

0

There are 0 best solutions below