The size of my Android application is only 5 MB on the device, but it uses a lot of RAM when I run the app As if about 12 -18 MB (on more ics devices) I am trying to find an explanation for this, because my application is using lots of RAM, I also use Push to push service. My application is an intense image, perhaps one of the possible reasons why I can reduce the consumption of RAM in my application.
The reason is that your app image is deep. Compared to the disk, the images in the large number of RAM take more memory. For ARGB images: Memory (in bytes) = width * height * 4
For ARG images:
The reason is that in ARGb image 4 channels per pixel. For RGB images: memory (in bytes) = width * height * 3 This is because the RGB image has 3 channels per pixel.
To use less memory, try to reduce image dimensions or do not need to delete alpha channels from images, which do not need it.
Comments
Post a Comment