I have an ImageView that I keep changing the picture
Bitmap pictBM = BitmapFactory.decodeFile("/sdcard/DCIM/"+CURRENT_IMAGE);
image.setImageBitmap(pictBM);
parent.addView(image);
After 4 or 5 pictures I get a OutOfMemory crash
In c++ there is .free() or .destroy() call
What do you use in android ?
What is the best way to clean up and free the variables once used ??
like pictBM and image ?
Thanks in advance
--
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