Drawable advantage over bitmap for memory in android

All your problems with Audio, Video and Images.

Drawable advantage over bitmap for memory in android

Postby tabman » Sat Jan 01, 2011 10:50 am

This question is linked with the answers in the following question:

http://stackoverflow.com/questions/4259 ... mapsandr...

Is there any advantage of using Drawable over Bitmap in Android in
terms of memory de-allocation ?

I was looking at Romain Guy project Shelves and he uses SoftReference
for images caches but I'm unable to search where is the code which is
de-allocating these Drawables when SoftReference automatically
reclaims the memory for Bitmap. As far as I know .recycle() has to be
explicitly called on the Bitmap for it to be de-allocated.

Thanks
tabman
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat May 22, 2010 9:38 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 5 guests