You'd be amazed how many exceptions are thrown loading a single class. On Jul 13, 5:05 pm, TreKing <[email protected]> wrote: > On Tue, Jul 13, 2010 at 2:30 PM, Frank Weiss <[email protected]> wrote: > > I suppose you might also try just catching the IllegalStateException which > > would occur if not a UI thread AFAIK.. > > Exceptions are for exceptional situations. You really should not be using > them for logic flow, and definitely not where threads are concerned. > > Particularly if this code is to be run frequently, the trying and > particularly the catching will kill your performance unnecessarily. > > I would do as Mark suggests. > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking
-- 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

