Strange Bitmap Using 1 Mb Of Heap
Out of curiosity, I just recently tested my Android App for Memory Leaks, using the Eclipse Memory Analyzer. I came across a strange Bitmap with the size of 512 x 512 pixels using
Solution 1:
The default window background used by Android is a 512x512 image (the blueish-dark gradient you see with the dark theme or the gray-white gradient with the light theme). On capable devices, this image is replaced with a procedural gradient as of Android 4.2.
Note that this bitmap is normally loaded in Zygote and shared by all the apps. It might show up in heap dumps if the dump doesn't exclude Zygote-allocated objects.
Here are the two 512x512 backgrounds I'm talking about if you're interested:
Post a Comment for "Strange Bitmap Using 1 Mb Of Heap"