Skip to content
Advertisement

Tag: bitmapfactory

Create a Bitmap/Drawable from file path

I’m trying to create a Bitmap or Drawable from existing file path. But setImageBitmap(), setImageDrawable() doesn’t show an image from the path. I’ve printed path with mText and it looks like : /storage/sdcard0/DCIM/100LGDSC/CAM00001.jpg What am i doing wrong? Anyone can help me? Answer Create bitmap from file path: If you want to scale the bitmap to the parent’s height and

Advertisement