Skip to content

Instantly share code, notes, and snippets.

@niftynei
Created January 8, 2015 19:18
Show Gist options
  • Save niftynei/089591caccf53049bcd6 to your computer and use it in GitHub Desktop.
Save niftynei/089591caccf53049bcd6 to your computer and use it in GitHub Desktop.
bluetooth connection error
01-08 14:10:25.748 3270-3477/com.example.client E/BluetoothConnection﹕ Exception communicating over bluetooth: bt socket closed, read return: -1
java.io.IOException: bt socket closed, read return: -1
at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:434)
at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
at java.io.InputStream.read(InputStream.java:162)
at com.example.bluetooth.BluetoothConnection.run(BluetoothConnection.java:99)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment