Bluetooth pairing is lost after a socket close
<p>I am working on an application that connects to a device using a bluetooth socket. Everything is running smoothly on 2 different HTC handsets with Android 2.2 but I just tried a brand new Sony Xperia running on Android 2.3 and I am experiencing a really weird behavior.</p>

<p>When I start the application, it will scan for devices and initiate a pairing request with the device. The pairing request is received and accepted by the user, the connection is made and a socket is opened.</p>

<p>The problem is that as soon as the socket is closed, the pairing is "forgotten" by the phone. The device is listed as unpaired in the Bluetooth devices list, and the application must initiate a new pairing request each and every time it needs to open the connection.</p>

<p>Has anything changed in the way pairing is managed with android 2.3? Is there a new requirement to close the socket and avoid loosing the pairing?</p>

<p>Thx in advance,
Pierre</p>
