You can create a Drawable or Bitmap from a string path like this:
String pathName = "/path/to/file/xxx.jpg";
Drawable d = Drawable.createFromPath(pathName);
For a Bitmap:
String pathName = "/path/to/file/xxx.jpg";
Bitmap b = BitmapFactory.decodeFile(pathName);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With