I have a problem of out of memory due to limited virtual memory heap size. Here is my code for fetching bitmap from server:
@SuppressWarnings(\"unchecked
BitmapFactory.decodeByteArray() creates the bitmap data in the Native heap, not the VM heap. See BitmapFactory OOM driving me nuts for details.
You could monitor the Native heap (as per BitmapFactory OOM driving me nuts) and downsample if you're running short of space.