有啊 getScanResults会返回ScanResult列表 ScanResult内有 public int level The detected signal level in dBm 描述信号强弱的 public int frequency The frequency in MHz of the channel over which the client is communicating with the access point. 这个是频率的http://developer.android.com/reference/android/net/wifi/ScanResult.html
ScanResult内有
public int level The detected signal level in dBm 描述信号强弱的
public int frequency The frequency in MHz of the channel over which the client is communicating with the access point. 这个是频率的http://developer.android.com/reference/android/net/wifi/ScanResult.html
我的level返回都是-100,frequency 返回都是mhz,我想返回那个1-8的数字
使用WifiManager的静态方法就可以返回等级了
WifiManager.calculateSignalLevel(result.level,8)
信道解决了,那个信号强度还是不行,所有的搜索出来result.level=-100,都是固定值啊
好象应该用 NEW_EXTRA_RSSI
但是我不知道该怎样用,我也遇到这个问题
谁能帮忙解决下呢?