[android-developers] Re: Out of Memory
Well, I guess it's the same old reoccurring question about Android bitmaps. And there's usually only one way to control the situation:
Do you recycle bitmaps when you're done using them? (do you call the Bitmap.recycle() method...)
That's usually the typical memory hog that accumulates over time and makes your app crash with an OutOfMemoryError.
On Sunday, January 6, 2013 12:14:10 AM UTC-6, Shubham Aggarwal wrote:
Hi, I developed android photography application. I draw more than one Bitmaps at the time. I am loading bitmaps efficiently using BitmapFactory.decode options--Still, I am getting error on some phones (not all).But to load the bitmap, user has to open up the android gallery. For example, if a user works with 4 images, gallery is opened up 4 times and I think that this is creating out of memory error.For example, user opens a gallery and the thumbnails shown in the gallery uses lot of space that leaves a little amount of memory for the bitmaps to be loaded in the application.Now, if user has lots of images in the gallery, that definitely means a lot of memory used by the gallery.So, I would like to know, is it possible to release the memory used by the gallery instead of creating a custom gallery.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 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home