关于 createInsecureRfcommSocket() 的困惑
我知道Android 2.3有以下方法:createInsecureRfcommSocket()和createInsecureRfcommSocketToServiceRecord()。我一直在寻找一种在设备之间交换数据的方法,两者都使用我的应用程序,而不需要配对/绑定和用户确认。这些方法是否允许我连接到以前从未配对过的全新设备,并交换数据而不以任何方式提示用户?
谢谢。我在其他地方找不到这个问题的具体答案。
I'm aware that Android 2.3 has the methods: createInsecureRfcommSocket() and createInsecureRfcommSocketToServiceRecord(). I've been searching for a way to exchange data between devices, both using my application, without the need for pairing/bonding and user confimation. Will these methods allow me to, say, connect to a brand new device never before paired, and exchange data without prompting the user in any way?
Thanks. I was unable to find a specific answer to this question elsewhere.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配对过程仍然会发生,但如果设备为 2.1 及更高版本,则在配对过程中不会提示用户确认或输入密钥。这称为使用“正常工作”模型进行配对。
The pairing process will still happen, except that if Devices are 2.1 and above, then the user will not be prompted for confirmation or for entering passkey during the pairing process. This is called using the "just works" model for pairing.