1

Unable to use listener in doInBackground()

view story
linux-howto

http://stackoverflow.com – In my asyncTask doInBackground() method I want to handle exception by making a toast. But I am unable to do so, and this is exception I get. Why is that? P.S. I can do it in onPreExecute() and onPostExecute(). 02-04 09:43:45.190: E/AndroidRuntime(19308): FATAL EXCEPTION: AsyncTask #1 02-04 09:43:45.190: E/AndroidRuntime(19308): java.lang.RuntimeException: An error occured while executing doInBackground() 02-04 09:43:45.190: E/AndroidRuntime(19308): at android.os.AsyncTask$3.done(AsyncTask.java:278) 02-04 09:43:45.190: E/AndroidRuntime(19308): at java.util.concurrent.FutureTask$Sy (HowTos)