java.lang.IllegalStateException: Immutable bitmap passed to Canvas constructor at android.graphics.Canvas.(Canvas.java:127) at app.test.canvas.StartActiv
in order to minimize memory usage, you can check out this post about converting/decoding a mutable bitmap straight from the resources :
https://stackoverflow.com/a/16314940/878126