You can load full-size pics.... with restrictions. I found out, i can load a full-sized pic (3MPixels) in RGB_565 mode. But trying to load it in ARGB_8888 fails (OOM exception) and i need to load it in a smaller size.
Still, in my app i dilligently try to clean up bitmap memory (call recycle and set references to null) if i really don't need them when i load a full-sized pic. I clean up any bitmap-caches i have; I call setImageBitmap(null) (or similar calls) on Views that are not in use; etc., etc. And, avoid caching stuff in collections/maps that are referenced by static variables, especially when caching bitmap in BitmapDrawables. If you do, however, be sure to clean out these 'global' variables/ structures when you're done... if not, you may get OOM after re- starting your app a few times. On May 1, 9:46 am, "L'\\tty" <adver...@hotmail.com> wrote: > Hi all! > > As mentioned in an earlier post, I am working on a image processing > application for android. I encountered an issue regarding the memory > contingent of the VMware. > > In other posts I read that it is not possible to import pictures in > full size, they are automatically scaled to the display dimensions, > right? > > If I am applying filters to a picture and I repeat this procedure for > more than one pictures the VMware runs out of memory. Is there a > chance of avoiding this problem? Can I free some ressources manually > or can I change something in architecture to avoid my application from > crashing? > > Regards, Florian --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---