AsyncTask and error handling on Android

It works fine but is it the “right”
approach and is there better
alternative?

I hold onto the Throwable or Exception in the AsyncTask instance itself and then do something with it in onPostExecute(), so my error handling has the option of displaying a dialog on-screen.

Leave a Comment