On Mon, Jul 16, 2012 at 2:23 PM, B.Arunkumar <awsnetworkrecor...@gmail.com> wrote: > My question is even though we have a try catch on Bitmap.createBitmap > it is still crashing. Why is the catch block not working?
I believe that would be because you're catching Exception but OutOfMemoryError, which IIRC is not an Exception subclass, is being thrown. > And how do > we handle the exception without crashing on Motorola Droid. I usually catch OutOfMemoryError directly in a situation like that. You could also catch Throwable but that would seem way too overbroad to me. -- 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