27.04.2011 22:50, dnkoutso пишет:
Also, I've read somewhere before the we should not just 'nullify' the
drawable reference. For example do not do bitmap = null; as this has
no effect. Instead just call bitmap.recycle() only.
recycle() seems a better option as it probably includes some native
calls to cleanup the bitmap from Skia.
It does, but then you'd need a way to determine which bitmaps are ready
for this and which are not.
Any recommendations, best practices?
I'd try to experiment with System.gc(), to see if that collects soft
references.
Thanks for response!
Welcome. Sorry, I haven't done much with bitmaps, so my suggestions are
very limited here. Hopefully someone more experienced can share better
ideas.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en