java.io.IOException

read failed, socket might closed or timeout, read ret: -1

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web137

Stack trace

  • java.io.IOException: read failed, socket might closed or timeout, read ret: -1 at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:505) at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:516) at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:320) at adc.com.samplebluetooth.Bluetooth.connectToPaired(Bluetooth.java:248) at adc.com.samplebluetooth.MainActivity$OnClick.onClick(MainActivity.java:90) at android.view.View.performClick(View.java:4443) at android.view.View$PerformClick.run(View.java:18443) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown UserUnknown User
2 times, last one
ivotje50ivotje50
595 times, last one
Unknown visitor
Unknown visitorOnce,
Sooraj SinghSooraj Singh
40 times, last one
RiyazRiyaz
2 times, last one
13 more bugmates