I am in a situation where I have used a for loop to download a set of images and I am converting it into bitmap images. So in order to avoid OutOfMemory error, I am trying to recycle the bitmaps. But unfortunately I am running into another exception saying something like "View trying to use a recycled bitmap"
.
But still I am allowed to null the used bitmap by using bitmap=null
. So my question is, will making my bitmap null
help me in freeing up the used memory? or should I provide bitmap.recycle()
in some other part of my code?