InputSream backgroundBitmap;
//backgroundBitmap is initialized from asset image.png
immutableBitmap = BitmapFactory.decodeStream(backgroundBitmap);
getting this error:
java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
Help me to solve this.
try this.. file from asset
this function will scale bitmap as you pass width and height