I have the exact same problem,
more precisely this is what happens:

05-05 11:34:37.330: DEBUG/ConnectionManager(2241): stop()
05-05 11:34:37.330: DEBUG/ConnectionManager(2241): CANCEL
mAcceptThread
05-05 11:34:37.340: DEBUG/BluetoothSocket(2241): BluetoothSocket
close()
05-05 11:34:37.340: DEBUG/BluetoothSppPort(2241): BluetoothSppPort
disconnect()
>>05-05 11:34:37.340: ERROR/BluetoothSppPort(2241): invalid port state for 
>>disconnection<<

In the API they describe that you can close the serversocket at any
time using just the BluetoothSocket close() method.
However this doesn't seem to be working !?

Anyone?

On 29 mrt, 16:56, VovaN <[email protected]> wrote:
> Hello,
> I've activity, which send files usingBluetooth. When I want to stop
> server socket which is waiting for accept I callclose(). After that
> activity just hang. How should IcloseBluetoothServerSocket correctly?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to