从尚未连接的WiFi获取WiFi路由器类型
有什么办法可以获得我附近有哪种WiFis? (无论是热点还是正常路由器的wifi),我都试图通过Android实现它。
Is there any way to get what kind of wifis are available near me? (whether it is a hotspot or normal router-oriented wifi) I'm trying to implement it via android.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案是 no 。识别wifi种类的唯一方法是识别
ssid
。无法使用Java或Kotlin等编程语言访问网络的这种低级别详细信息。尽管有一个
NetworkInterface
类,但是它没有读取与wifi相关的信息之类的方法,例如ssid
或mac
地址。The answer is NO. The only way to recognize the kind of WiFi is by identifying the
SSID
. Such low level details of the network cannot be accessed using programming languages such as Java or Kotlin.Although there is a
NetworkInterface
class, but it has no methods to read WiFi related information likeSSID
orMAC
address.