Java/Android中通过BT获取远程设备文件列表
我正在尝试使用 OBEX 获取远程设备文件夹列表;我正在尝试使用连接
String btUrl=btgoep://"+mac_address+":10;authenticate=false;encrypt=false;master=false"
,但当我致电时出现“尚不支持”错误
ClientSession conn = (ClientSession) Connector.open(btURL);
有人可以帮助我吗?
I'm trying to get the remote device folder listing using OBEX; i'm trying to connect using
String btUrl=btgoep://"+mac_address+":10;authenticate=false;encrypt=false;master=false"
but i get Not supported yet error when i call
ClientSession conn = (ClientSession) Connector.open(btURL);
Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
端口可能不正确。您应该通过 DiscoveryListener 中的服务搜索来获取连接地址。在 jsr82 中,它看起来像这样:
The port may be incorrect. You should get connection addres via service search in DiscoveryListener. In jsr82 it looks like this:
试试这个。
现在您的工作是解析 obex 文件夹列表的 XML 数据。
Try this.
Now your work is to parse XML data of obexfolder listing.