I am loading a bitmap from a resource like so:
Bitmap mBackground = BitmapFactory.decodeResource(res,R.drawable.image);
What I want to do
Instad of yours:
Use:
BitmapFactory.Options options = new BitmapFactory.Options(); options.inMutable = true; Bitmap mBackground = BitmapFactory.decodeResource(res,R.drawable.image, options);