java.io.IOException: Service discovery failed
问题 I'm working on an Android app using Bluetooth connectivity between two paired smartphones. The Bluetooth logic is based on the famous BluetoothChat SDK example: a "service" Class managing a thread for server accept() , a thread for client connect() and a thread for reading/writing on the socket. Everything works fine, except if I close an active connection (both from client or server side), then all successive attempts to start a new connection will fail with this error: java.io.IOException: