There's really nothing to say ..., why do you have to do this ..., think it's fun ..., Google, the project teacher who wrote this interface to get Wifissid, has an aching egg.
The methods for obtaining Wifissid are as follows:
Android.net.wifi.WifiManager Mwifimanager = (wifimanager) MainActivity.this.getSystemService (Context.wifi_service) ; Android.net.wifi.WifiInfo mwifiinfo = Mwifimanager.getconnectioninfo (); String Currentwifissid = Mwifiinfo.getssid ();//Get current Wifissid
Think of everything as a matter of course. However. This currentwifissid is not the same as the value of a wifi on different phones! This causes a series of unexpected results behind the program.
My mobile phone system version number is 4.1.1, the execution of the SSID is FAST_2C28, colleague cell phone is 4.4 or 5.0, the execution of the SSID is "FAST_2C28", a number of cited.
。
。。
There is wood there. The impression of the year in the 4.2 system has not been more than a number of quotes Ah, why, what is the reason. Will the SSID on their phone have multiple quotes? I really have no words to say.
About Android different version number get WiFi SSID, really no words