0

I have

Bitmap bm = BitmapFactory.decodeFile(path); 
imageView.setImageBitmap(bm); 

working properly. the only exception I'm facing now is if the photo is stored in Camera folder on a samsung device, imageView.setImageBitmap(bm); will not display the image.

I tried to printout the path, and I got storage/extSdCard/DCIM/Camera/20140404_120332.jpg which is the same path I see in gallery. What's weird about this is my code seems only not working when images are stored in Camera folder. Other images like storage/extSdCard/DCIM/100MEDIA/IMAG0327.jpg would display the correct bitmap. What's so special about this Camera folder? both images are stored in sdcard but why the one store in Camera not working? Do I need a particular permission? or is this a bug?

Thanks for your help :)

user1865027
  • 3,505
  • 6
  • 33
  • 71

0 Answers0