1

Whenever we create bitmaps objects,

  • why they are not release by System.gc();.
  • what is the best way to remove bitmap object

2 Answers2

0

The bitmaps are kind of tricky, if you want to clear the used memory. I use bitmap.recycle(), it empties the heap, but not quite so. This is asked before. You can see this for more info: Android - Bitmap and memory management? and this:Android Bitmap freeing memory - none of this works

Community
  • 1
  • 1
ya-ivanov
  • 516
  • 2
  • 11
0
bitmap.recycle()

Check this link for further explanation. For decoding larger image check this.

Community
  • 1
  • 1
IronBlossom
  • 3,898
  • 3
  • 35
  • 42