Tuesday, July 27, 2010

[android-developers] Can Bitmap native resources be recycled by Garbage Collector?

Hi, folks
For Java objects, GC can free those objects that are not used any
more.
For native resources, such as Bitmap image data (not Java Bitmap
objects), which are allocated using native code (C/C++, etc), can they
be recycled as well? Or I MUST call Bitmap.recycle() to free the
resource?
Thanks!

Gerald

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment