title: Bitmap, Bitmap.recycle(), WeakReferences, and Garbage Collection
body: <p>AFAIK on Android, it is recommended to reference Bitmap objects as WeakReferences in order to avoid memory leaks. When no more hard references are kept of a bitmap object, the garbage collector will automatically collect it.</p>
  
  <p>Now, if I understand correctly, the method Bitmap.recycle() must always be called to free a Bitmap. I think this is because Bitmap objects have special memory management.</p>
  
  <p>Is that correct?</p>
  
  <p>If this is true, when using WeakReferences, there must be memory leaks because Bitmap.recycle() is never called when the WeakReferences are freed. Or, somehow, are WeakReferences sufficient to avoid memory leaks?</p>
  
  <p>Thanks</p>