Widget calls main thread when thread is not yet started sometimes

Bug #403782 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Android's Fortune
New
Undecided
Unassigned

Bug Description

07-23 11:14:50.419: ERROR/AndroidRuntime(675): Uncaught handler: thread NotifyingService exiting due to uncaught exception
07-23 11:14:50.429: ERROR/AndroidRuntime(675): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at android.os.Handler.<init>(Handler.java:121)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at android.widget.Toast.<init>(Toast.java:397)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at android.widget.Toast.makeText(Toast.java:230)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at net.lp.androidsfortune.FortuneActivity.getFortune(FortuneActivity.java:460)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at net.lp.androidsfortune.NotifyingService.showNotification(NotifyingService.java:188)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at net.lp.androidsfortune.NotifyingService.access$2(NotifyingService.java:180)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at net.lp.androidsfortune.NotifyingService$1.run(NotifyingService.java:161)
07-23 11:14:50.429: ERROR/AndroidRuntime(675): at java.lang.Thread.run(Thread.java:1058)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.