Nope. :=)

If you look at the class-hierarchy, an OutOfMemoryError is an Error,
not an Exception.
(You can catch a Throwable as well, since a Throwable is the super-
class of both Error and Exception)

On Aug 22, 8:00 pm, Bob <bshumsk...@yahoo.com> wrote:
> Thanks for quick response.  Is an OutOfMemoryError not a normal
> exception that will be caught by try{}catch(Exception ex){}?
>
> On Aug 22, 7:47 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote:
>
>
>
> > You can catch it.
> > Just catch the OutOfMemoryError (or Throwable).
>
> > On Aug 22, 7:45 pm, Bob <bshumsk...@yahoo.com> wrote:
>
> > > Hi,
> > > I am getting an outofmemory error (java.lang.outofmememoryerror) from
> > > a bitmapfactory that doesn't seem to be caught despite the fact that
> > > it is in a try{ }catch block.  Can I catch this error somehow or is it
> > > outofmemory inherently uncatchable?
>
> > > Thanks,
> > > Bob- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to