I just updated Nexus One with Android 2.3.3 and it seems that the bluetooth connection over SPP have stopped working in my app.
The same app works alright in 开发者_运维知识库HTC Desrire with Android 2.2 and the same app use to work properly on Nexus One too. The problem started after upgrading to Android 2.3.3.
Can anyone let me know what may be the issue?
I was able to solve this issue by using createInSecureRfcommSocket API and also there is a way of connecting through reflection for insecure connections.
I found the same issue. I was not able to get the reflection to work for insecure comms, but the public interface did work.
The symptom is that the connect() call throws the IOException "Connection Refused" every time on 2.3.3, while the code worked fine on 2.2.
I opened a defect against android here: http://code.google.com/p/android/issues/detail?id=15919&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
精彩评论