I would like to know how to use WifiManager to check if my device wifi adapter supports 5Ghz frequency or not. Small snippet for android code would be great.
Thanks
You can use is5GHzBandSupported() from Android API Level 21.
This way:
wifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE); wifiManager.is5GHzBandSupported()
2.1m questions
2.1m answers
60 comments
57.0k users