8
可能重複:
Official reasons for 「Software caused connection abort: socket write error」Android藍牙:軟件導致連接中止IOException?
我有BluetoothChat我無法連接Droid的問題。我總是得到這個IOException
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)
我該如何解決這個問題?
如果不顯示某些代碼,您是否完全使用該代碼。並註冊爲用戶並接受一些答案0%的接受並不會讓我們想要幫助你很多 – JPM 2011-11-02 14:54:35