When I don't need Bitmaps anymore, I usally recycle them by calling
bitmap.recycle()
However, there are a couple of situations in which I need to use the recycled Bitmap again, so usually I just load it again:
if(bitmap.isRecylced()) bitmap = BitmapFactory.decodeResource(gv.getContext().getResources(),bmp);
Log.e("log","bitmap recycled? "+bitmap.isRecycled());
As I expected, bitmap.isRecycled() returned 'false' on my phone, but when I tried to run the app on another phone, it returned 'true', the Bitmap was still recycled and therefore could not be drawn. Does anyone have an idea what could cause this and how to fix it?