How much memory does RGB_565 bitmap occupy in Android? I would guess 2 bytes per pixel but:
- I have 256x256 bitmaps, so 1 would have 256 * 256 * 2 = 131,072 bytes
- My app (offline tiled map) throws OutOfMemoryError on N1 (2.3) when 143 bitmaps are in memory. 143 bitmaps is 18MB. Max heap size on my phone is 32 MB.
- That would imply that the rest of my app is 32 - 18 = 14 MB. But i see only a little over 7 MB in DDMS > Heap. Also, I would have only 2 MB for bitmaps on 16 MB heap size devices.