Does the call to Bitmap.create() return a non-null object in the first place? If it returns null, have you tried RGB_565, just as a test?
An ALPHA_8 bitmap would use one quarter the amount of memory of an ARGB_8888 bitmap. 13 февраля 2012 г. 17:07 пользователь Jim Graham <[email protected]> написал: > On Mon, Feb 13, 2012 at 04:56:52PM +0400, Kostya Vasilyev wrote: >> I'd try reducing the image size further, say down to 16 by 16, just >> for testing purposes - to see if the error is in fact, still, an out >> of memory error. > > Ok, it's now a 4x3 filter which will be an overlay for first a 728x576 > preview, and then the 5MP final image....except that it's still force > closing...on an Acer Iconia A500 with a LOT of free RAM. > >> I'd also try using Config.ALPHA_8, per your stated intention of using >> this bitmap as a mask. > > The advantage being? Over what? (Seriously, I've never worked with this > stuff before...until a few days ago, I didn't even know what the alpha > channel was for.) > > Thanks, > --jim > > -- > THE SCORE: ME: 2 CANCER: 0 > 73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 > > [email protected] ICBM/Hurricane: 30.44406N 86.59909W > > Do not look into waveguide with remaining eye! > > Android Apps Listing at http://www.jstrack.org/barcodes.html > > -- > 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

