ikalbeniz wrote:
> Here my adb log...

> E/AndroidRuntime( 1674): java.lang.RuntimeException: Can't create
> handler inside thread that has not called Looper.prepare()
> E/AndroidRuntime( 1674):      at android.os.Handler.<init>(Handler.java:
> 121)
> E/AndroidRuntime( 1674):      at android.widget.Toast.<init>(Toast.java:
> 68)
> E/AndroidRuntime( 1674):      at android.widget.Toast.makeText(Toast.java:
> 231)
> E/AndroidRuntime( 1674):      at com.goear.Goear.run(Goear.java:69)
> E/AndroidRuntime( 1674):      at java.lang.Thread.run(Thread.java:1096)

Your exception is above. You are trying to display a Toast from a
background thread. If you change that around (e.g., only display the
Toast from the main application thread), this problem will go away.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to