1

Recycle Bitmap in android

view story
linux-howto

http://stackoverflow.com – First, I use AsyncTask to download bitmap and contain bitmap into array. myBitmap[0] = task.execute().get(); My first question is, if I recycle() my array of Bitmap and download by using ASyncTask again when start Activity, This would cause any problems to memory or not. Because if I download all Bitmap into my device, errors would occur surely. That's why I have to download and remove them again and again. And second question is, If I have some Bitmap as follows: Bitmap newBitmap = myBitmap[0]; Do I have to recycle() the newBitmap to decrease memory? (HowTos)