Android 中的 WiFi 编程
什么是 ScanResult.capability? 由于我没有设备,所以我不知道它的格式。
如何连接到特定的 API? 我查阅了API文档,但没有找到实现该功能的方法。 我错过了什么吗?
What is ScanResult.capabilities? Since I don't have a device, I don't know the format of it.
How do you connect to a specific API? I have looked through the API documentation but found no method to implement the function. Am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我徒劳地尝试浏览相关代码,知道Android平台是开源的,但失败了。 不过,如果您愿意按照指南了解如何获取源代码,那么应该还是有可能的。
当然,阅读源代码以了解他们如何生成该特定字符串很可能会导致您的应用程序被“锁定”特定的实现,我看到有迹象表明他们打算稍后将其从字符串更改为更结构化的内容。
I tried in vain to just browse up the relevant code, knowing that the Android platform is open source, but failed. However, it should still be possible if you're willing to follow the guide on how to get the source.
Of course, reading the source to see how they generate that particular string might well result in your app being "locked" against a particular implementation, I saw indications that they intend to change it from a string into something a bit more structured, later.