java.io.IOException

read failed, socket might closed or timeout, read ret: -1 04-14 11:12:53.274: W/System.err(22212): at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:574) 04-14 11:12:53.274: W/System.err(22212): at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:585) 04-14 11:12:53.274: W/System.err(22212): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:326) 04-14 11:12:53.274: W/System.err(22212): at com.wormhole.bluetoothdemo.MainActivity$ListItemClickListener.onItemClick(MainActivity.java:152) 04-14 11:12:53.274: W/System.err(22212): at android.widget.AdapterView.performItemClick(AdapterView.java:299) 04-14 11:12:53.274: W/System.err(22212): at android.widget.AbsListView.performItemClick(AbsListView.java:1115)

Samebug tips0

We couldn't find tips for this exception.

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

Stack trace

  • java.io.IOException: read failed, socket might closed or timeout, read ret: -1 04-14 11:12:53.274: W/System.err(22212): at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:574) 04-14 11:12:53.274: W/System.err(22212): at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:585) 04-14 11:12:53.274: W/System.err(22212): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:326) 04-14 11:12:53.274: W/System.err(22212): at com.wormhole.bluetoothdemo.MainActivity$ListItemClickListener.onItemClick(MainActivity.java:152) 04-14 11:12:53.274: W/System.err(22212): at android.widget.AdapterView.performItemClick(AdapterView.java:299) 04-14 11:12:53.274: W/System.err(22212): at android.widget.AbsListView.performItemClick(AbsListView.java:1115) at android.widget.AbsListView$PerformClick.run(AbsListView.java:2928) at android.widget.AbsListView$3.run(AbsListView.java:3691) 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:5072) at java.lang.reflect.Method.invokeNative(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

Indri YunitaIndri Yunita
4 times, last one
Unknown visitor
Unknown visitorOnce,
jkjk
15 times, last one
tone5992tone5992
Once,
Unknown visitor
Unknown visitorOnce,
4 more bugmates