That question doesn't really make sense -- SoftReference has no idea what a
"Bitmap" is.

If you are wondering whether the bitmap data will *eventually* be released,
well of course -- once all references to the Bitmap go away, its finalizer
will eventually be called and that ensures its resources are released.

On Sun, Jan 2, 2011 at 11:05 AM, Tabman <tabishfay...@gmail.com> wrote:

> Hi,
>
> If I store bitmaps in a hashmap using SoftReference, will
> SoftReference call .recycle() on the Bitmap ? And if it doesn't then
> what would be a way to clear the bitmap properly from memory under the
> given situation ?
>
> thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to