简体   繁体   English

Nexus One中Android 2.3.3中通过SPP进行的蓝牙连接是否存在问题?

[英]Problem in Bluetooth connection over SPP in Android 2.3.3 in Nexus One?

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. 我刚刚用Android 2.3.3更新了Nexus One,看来通过SPP进行的蓝牙连接已在我的应用中停止工作。

The same app works alright in HTC Desrire with Android 2.2 and the same app use to work properly on Nexus One too. 同一款应用可以在Android 2.2的HTC Desrire中正常运行,并且同一款应用也可以在Nexus One上正常运行。 The problem started after upgrading to Android 2.3.3. 升级到Android 2.3.3后,问题开始了。

Can anyone let me know what may be the issue? 谁能告诉我可能是什么问题?

通过使用createInSecureRfcommSocket API,我能够解决此问题,并且对于不安全的连接,还有一种通过反射进行连接的方法。

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. 症状是connect()调用每次在2.3.3上都抛出IOException“ Connection Refused”,而代码在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 我在这里针对android打开了一个缺陷: http : //code.google.com/p/android/issues/detail?id=15919&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM