Hey , It Free the native object associated with this bitmap, and clear the reference to the pixel data.
I need help , i am trying to send image from my java code on Pc to my android code, but does not works since android does not support javax.imageio.*; package tell me the other way to do it. On Tue, Mar 20, 2012 at 8:28 PM, bob <[email protected]> wrote: > I'm looking at some of the samples in apidemos, and I saw this: > > Bitmap bitmap; > > try { > > bitmap = BitmapFactory.decodeStream(is); > > } finally { > > try { > > is.close(); > > } catch (IOException e) { > > // Ignore. > > } > > } > > GLUtils.texImage2D(GL_TEXTURE_2D, 0, bitmap, 0); > bitmap.recycle(); > > > Anyone know why they are calling bitmap.recycle()? Is that really > necessary? Isn't the garbage collection automatic? > > -- > 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 -- 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

