Skip to content Skip to sidebar Skip to footer

What Does Calling Bitmap.recycle() On Api 11+ Do?

I know that before API 10 of Android, it was important to call recycle() for Bitmaps that aren't used anymore, since the actual raw data is stored in the native memory. However, as

Solution 1:

Official documentation tells that recycle() now is an advanced call so if you want to free your bitmap you can just write something like bitmap = null and GC will take care of everything else.


Post a Comment for "What Does Calling Bitmap.recycle() On Api 11+ Do?"