title: Android Bluetooth: Software Caused Connection Abort IOException?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2126607/official-reasons-for-software-caused-connection-abort-socket-write-error">Official reasons for &ldquo;Software caused connection abort: socket write error&rdquo;</a>  </p>
  </blockquote>
  
  
  
  <p>I have problems with BluetoothChat I can't connect Droid .  I always get this IOException</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>How can I solve this problem?</p>