Yeah, my bad.. 11-11 21:47:01.811: INFO/InetAddress(797): Unknown host thishostdoesntexist.net, throwing UnknownHostException 11-11 21:47:02.270: ERROR/AndroidRuntime(797): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception 11-11 21:47:02.260: WARN/dalvikvm(797): threadid=15: thread exiting with uncaught exception (group=0x4001aa28) 11-11 21:47:02.270: ERROR/AndroidRuntime(797): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception 11-11 21:47:02.280: ERROR/AndroidRuntime(797): java.lang.RuntimeException: An error occured while executing doInBackground() 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at android.os.AsyncTask$3.done(AsyncTask.java:200) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java: 234) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:258) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.util.concurrent.FutureTask.run(FutureTask.java:122) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:648) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:673) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.lang.Thread.run(Thread.java:1060) 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() 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at android.os.Handler.<init>(Handler.java:121) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at android.widget.Toast.<init>(Toast.java:68) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at android.widget.Toast.makeText(Toast.java:231) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at foo.bar.MainActivity.onTaskError(MainActivity.java:113) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at foo.bar.MainActivity.access$2(MainActivity.java:110) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at foo.bar.MainActivity$GenerateMangaTitles.doInBackground (MainActivity.java:223) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at foo.bar.MainActivity$GenerateMangaTitles.doInBackground (MainActivity.java:1) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at android.os.AsyncTask$2.call(AsyncTask.java:185) 11-11 21:47:02.280: ERROR/AndroidRuntime(797): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
On 11 Nov, 21:24, Mark Murphy <mmur...@commonsware.com> wrote: > Lee Jarvis wrote: > > So I've been sifting through example after example of android code, > > and I see most web requests don't actually catch that many exceptions, > > maybe because their path is hard coded so there is no room for user > > error? > > > I'm still confused as the best way to exit my background task > > gracefully if my get() method raises an exception, at the moment > > getting anything but a force close just isn't happening > > Without a stack trace, it will be difficult for anyone to give you > advice on this issue. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ > Version 1.2 Available! -- 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