CodePudding user response:
/* ** search nearby hot spot information, and return all hot spots for SSID information collection data
*/
Public List
//scanning hot data
List
//start scanning hot
MWifiManager. StartScan ();
ResultList=mWifiManager. GetScanResults ();
ArrayList
If (resultList!=null) {
For (ScanResult scan: resultList) {
Ssids. Add ( scan. The SSID );//traverse data, obtains the ssid data set
}
}
Return ssids.
}
Can't scan, check your location have permissions required above android6.0 dynamic application location permissions in the code
CodePudding user response:
Mobile phone share the WiFi name, is not a search nearby WiFi,