Ahh yeah that makes total sense now. Can't believe I didn't notice that Thanks again
On Nov 11, 10:16 pm, Mark Murphy <[email protected]> wrote: > Lee Jarvis wrote: > > Yeah, my bad.. > > <snip> > > > 11-11 21:47:02.280: ERROR/AndroidRuntime(797): Caused by: > > java.lang.RuntimeException: Can't create handler inside thread that > > has not called Looper.prepare() > > General rule: always look for the "Caused by:" entry in the stack trace. > > Your problem isn't the exception, but what you are doing in the > exception handler. Whatever mActivity.onTaskError(e.getMessage()); may > be trying to modify the UI, and that's a no-no from a background thread. > Whatever you're doing, it's not strictly kosher. > > What I have done is held onto the Exception object in the AsyncTask > instance, then used it in onPostExecute(), when it is safe to update the UI. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 1.0 Available! -- 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

