litesuits / android-lite-bluetoothLE

BLE Framework. Based on Bluetooth 4.0. Based on callback. Extremely simple! Communication with BluetoothLE(BLE) device as easy as HTTP communication. Android低功耗蓝牙便捷操作框架,基于回调,完成蓝牙设备交互就像发送网络请求一样简单。
http://litesuits.com?form=gble
Apache License 2.0
970 stars 322 forks source link

Demo Error #9

Closed xvolica closed 8 years ago

xvolica commented 8 years ago

示例程序报错 W/BluetoothGatt: Unhandled exception in callback java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

xvolica commented 8 years ago

W/BluetoothGatt: Unhandled exception in callback java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:346) at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:366) at com.litesuits.bluetooth.LiteBluetooth$2.onServicesDiscovered(LiteBluetooth.java:350) at android.bluetooth.BluetoothGatt$1.onSearchComplete(BluetoothGatt.java:305) at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:217) at android.os.Binder.execTransact(Binder.java:452)