Saving bitmap buffer as bitmap image


Eclipse Memory Analyzer doesn’t provide option to view a bitmap buffer directly. Try the following steps that will allow you to save the bitmap buffer as a bitmap image that you can view using any image viewer. 1. Select the bitmap buffer that you would like to Save 2. Save the buffer to your computer Select the Location in your computer where you would like to save the buffer file. You can give any name and extension 3. Enable inspector view in Eclipse Once you have saved the … [Read more...]

Fixing Bitmap memory leaks in Android

The biggest hurdle for Android developers is memory leaks. Especially if you are using a lot of images you tend to see memory leaks more often. Android internally handles the images as Bitmaps so even if the images used are optimized or of low quality it takes the same amount of memory. For example an image of size 800X600 takes 4 bytes per pixel which means the size will be 1.8 MB (4*800*600 = 1920000 bytes) whereas the same image will be 200 KB – 600 KB based on the quality of the image. If … [Read more...]