StackOverflow 上好像有人解决了这个问题
-- StackOverFlow : http://stackoverflow.com/questions/18657427/ioexception-read-failed-socket-might-closed-bluetooth-on-android-4-3在 BluetothDevice 中有个隐藏方法 : /**
     * Create an RFCOMM {@link BluetoothSocket} ready to start a secure
     * outgoing connection to this remote device on given channel.
     * <p>The remote device will be authenticated and communication on this
     * socket will be encrypted.
     * <p> Use this socket only if an authenticated socket link is possible.
     * Authentication refers to the authentication of the link key to
     * prevent man-in-the-middle type of attacks.
     * For example, for Bluetooth 2.1 devices, if any of the devices does not
     * have an input and output capability or just has the ability to
     * display a numeric key, a secure socket connection is not possible.
     * In such a case, use {#link createInsecureRfcommSocket}.
     * For more details, refer to the Security Model section 5.2 (vol 3) of
     * Bluetooth Core Specification version 2.1 + EDR.
     * <p>Use {@link BluetoothSocket#connect} to initiate the outgoing
     * connection.
     * <p>Valid RFCOMM channels are in range 1 to 30.
     * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
     *
     * @param channel RFCOMM channel to connect to
     * @return a RFCOMM BluetoothServerSocket ready for an outgoing connection
     * @throws IOException on error, for example Bluetooth not available, or
     *                     insufficient permissions
     * @hide
     */
    public BluetoothSocket createRfcommSocket(int channel) throws IOException {
        return new BluetoothSocket(BluetoothSocket.TYPE_RFCOMM, -1, true, true, this, channel,
                null);
    }接收这个抛出的 IOException 异常 ...  具体不翻译了 , LZ 自己去翻译吧

解决方案 »

  1.   

    蓝牙聊天好像是最近一个很火的聊天app
      

  2.   

    这个问题我以前碰到过,一个是socket已经关闭掉了或者没有打开,还有一个问题就是UUID的问题,你可以试一下,我当初就是换了个UUID之后就把这个问题解决了。我找的时候找到了两个不同的UUID,好像是一个是手机的,还有一个是蓝牙设备的,具体的忘记了
      

  3.   

    我是换了uuid,能够成功控制。
      

  4.   

    LZ能不能分享一下怎么解决的?我换了UUID也没有解决这个问题