I\'m trying to load a png image as a drawable from my device sd card. I use the following function but it doesn\'t work:
public Drawable getDrawable() { retu
I am simple do like that
public Drawable getDrawableFromPath(String filePath) { Bitmap bitmap = BitmapFactory.decodeFile(filePath); //Here you can make logic for decode bitmap for ignore oom error. return new BitmapDrawable(bitmap); }