如何检测设备是否具有5Ghz Wi-Fi [英] How to detect whether device has 5Ghz Wi-Fi or not

查看:55
本文介绍了如何检测设备是否具有5Ghz Wi-Fi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间寻找解决方案,但没有结果.所以我的问题是,有什么方法可以检测设备是否具有5Ghz Wifi?如果有可能做到这一点,那就太好了.我已经分析了WifiManager,但是找不到合适的方法或属性.

I spent much time by seaching for solution but without result. So my question is, is there any way how to detect whether device has 5Ghz Wifi or not? It would be nice if it's possible to achieve that. I already analysed WifiManager but didn't find proper method or property.

谢谢.

推荐答案

从Android API级别21开始,WifiManager的方法称为

As of Android API Level 21, WifiManager has a method called is5GHzBandSupported() that returns true if the adapter supports 5 GHz band.

这篇关于如何检测设备是否具有5Ghz Wi-Fi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆