There are many problems with memory exceptions with bitmaps on Android, many of which are discussed on stackoverflow. It would probably be best if you went through the existing questions to see if yours matches one of the existing ones, then if not, write up what makes your situation different.
Different Bitmap configurations will have different memory footprints. RGB_565 is a 16 bit colour format. ARGB_8888 is a 32 bit format.
Regardless of which getHolder().setFormat(); configuration you've chosen, or how it's being drawn, an ARGB_8888 Bitmap is going to be significantly larger (in memory) than a Bitmap in RGB_565 format.
so Better use RGB_565 format instead of ARGB_8888.
Some examples:
Out of memory exception due to large bitmap size
Android: out of memory exception in Gallery
Android handling out of memory exception on image processing
etc : https://stackoverflow.com/search?q=android+out+of+memory+exception+bitmap
For more detail visit here. android - out of memory exception when creating bitmap