如何获得WiFi标准 [英] How to get wifi standard

查看:231
本文介绍了如何获得WiFi标准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能和变革的WiFi标准,我使用的是现在在我的Andr​​oid设备。 例如:的IEEE 802.11b还是IEEE 802.11g或的IEEE 802.11n 的 如果这是可能的。

How can I get and change wifi standard, which I'm using now in my android device. For example: IEEE 802.11b or IEEE 802.11g or IEEE 802.11n. If this is possible.

推荐答案

它不可能得到什么类型的网络的手机连接到。但是你可以发现网络的速度:

Its not possible to get what type of network the phone is connected to. However you can find the speed of the network:

    WifiManager wifiManager = Context.getSystemService(Context.WIFI_SERVICE);
    WifiInfo wifiInfo = wifiManager.getConnectionInfo();
    if (wifiInfo != null) {
        Integer linkSpeed = wifiInfo.getLinkSpeed(); //measured using WifiInfo.LINK_SPEED_UNITS
    }

PS:您可以通过查询加密在网络上大概猜到网络的类型。但是,没有内置的方法。

P.S.: You can probably guess the type of network by interrogating the encryption on the network. But there is no built in method.

这篇关于如何获得WiFi标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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