Android: Is decreasing size of .png files have some effect to resulted Bitmap in memory

Posted by nahab on Stack Overflow See other posts from Stack Overflow or by nahab
Published on 2010-04-08T17:57:10Z Indexed on 2010/04/08 18:23 UTC
Read the original article Hit count: 204

Filed under:
|
|

I'm writing game with a large amount of .png pictures. All worked fine. Than I added new activity with WebView and got memory shortage. After that I made some experiment - replace game .png images with ones that just fully filled with some color. As result memory shortage had gone.

But I suppose that Bitmap internally hold each pixel separately so such changes should have no effect. Maybe this because of initial images have alpha channel and my test images have not it?

But actually question is: Will decreasing .png images files sizes make some effect on decreasing usage of VM application heap or not?

© Stack Overflow or respective owner

Related posts about android

Related posts about bitmap