문제

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 .

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top