So basically, I have a Vector class in which all bitmaps are stored so that I can have a dynamic array. What I actually do is something like this:
Bitmap bmp = Bitmap.decodeResource(context.getResources(), context.getResources().getIdentifier(imageName, "drawable", "com.example.dynamicbitmap"); vector.add(bmp);
What I would like to ask is that.. if I call vector.remove(value)
, would it free some space in heap space? In short, would the bitmap be automatically recycled? Or do I have to manually invoke it before removing the bitmap object from the vector?