Reducing My Application Allocated Heap

464 views Asked by At

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 .

1

There are 1 answers

6
Luciano Rodríguez On BEST ANSWER

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.