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.
I'd also try using Config.ALPHA_8, per your stated intention of using this bitmap as a mask. -- Kostya 13 февраля 2012 г. 16:42 пользователь Jim Graham <[email protected]> написал: > On Mon, Feb 13, 2012 at 03:30:32PM +0400, Kostya Vasilyev wrote: >> Let's see: 2048 * 1536 * Bitmap.Config.ARGB_8888 = 12 megabytes. >> >> I'd guess that you are running into a memory allocation failure. > > Well, I reduced the bitmap size drastically (the 2048x1536 WAS an error > on my part...the largest it needs to be is the size of the final camera > image, for whatever resolution the camera has...in my case, 5MP). > > So after reducing it to the preview size (728x576), it still forced > closed just like before. The error is in my creation of the bitmap. I > know that much. What I'm looking for help in is what I'm doing wrong. > After all of the references I'd read while putting that together, I > *THOUGHT* I had it right...but apparently, I don't. > > Thanks, > --jim > > -- > THE SCORE: ME: 2 CANCER: 0 > 73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 > > [email protected] ICBM/Hurr.: 30.44406N 86.59909W > > Saw something on TV about Psych-os. > Hmmmm, Psych OS. Perhaps the next freeware OS.... --me > > 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

