thể trùng lặp:
Official reasons for “Software caused connection abort: socket write error”Android Bluetooth: Phần mềm gây ra kết nối hủy bỏ IOException?
tôi có vấn đề với BluetoothChat tôi không thể kết nối Droid. Tôi luôn nhận được IOException này
08-09 20:58:24.889: INFO/BluetoothChat(17378): MESSAGE_STATE_CHANGE: 3
08-09 20:58:51.053: DEBUG/BluetoothService(17378): BT_SEND_MESSAGE
08-09 20:58:51.108: ERROR/BluetoothService(17378): disconnected
08-09 20:58:51.108: ERROR/BluetoothService(17378): java.io.IOException: Software caused connection abort
08-09 20:58:51.108: ERROR/BluetoothService(17378): at android.bluetooth.BluetoothSocket.readNative (Native Method)
08-09 20:58:51.108: ERROR/BluetoothService(17378): at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:286)
08-09 20:58:51.108: ERROR/BluetoothService(17378): at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:96)
08-09 20:58:51.108: ERROR/BluetoothService(17378): at java.io.InputStream.read(InputStream.java:133)
08-09 20:58:51.108: ERROR/BluetoothService(17378): at my.test.BluetoothChatService$ConnectedThread.run(BluetoothChatService.java:356)
Làm cách nào để giải quyết vấn đề này?
Bạn đang sử dụng mã chính xác nếu không hiển thị một số mã. Và cũng đăng ký với tư cách người dùng và chấp nhận một số câu trả lời 0% chấp nhận không khiến chúng tôi muốn giúp bạn nhiều như vậy – JPM