Home > Mobile >  Help Android9.0 how to obtain hot name?
Help Android9.0 how to obtain hot name?

Time:10-09

Mobile phone portable hotspot, api29, Android Pie

CodePudding user response:

/* *
* search nearby hot spot information, and return all hot spots for SSID information collection data
*/
Public List GetScanWifiResult () {
//scanning hot data
List ResultList;
//start scanning hot
MWifiManager. StartScan ();
ResultList=mWifiManager. GetScanResults ();
ArrayList Ssids=new ArrayList (a);
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,
  • Related