Hi, I wrote a service for disabling the bluetooth dynamically. when I
try to call
BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter(); its
throwing me the error
java.lang.RuntimeException: Can't create handler inside thread that
has not called Looper.prepare()



Please let me know how can I resolve this issue.


Regards!
Bharath

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

Reply via email to