Question

How can I reduce the allocated heap of my application,DDMS in Eclipse shows that

Heap Size:62.3MB

Allocated:44.6MB

Used:70%

I Also want to know does PNG images allocate a huge size ??Because I deleted a PNG Button from my application and as a result heap allocation was reduced.

Is it bad to use JPG for Backgrounds and PNG for Buttons .

Was it helpful?

Solution

AFAIK images allocate memory in function of their resolution and their bit depth. So try to use different images for different densities and try to avoid when your requirements allow it loading huge images as backgrounds.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top