About Android different version number get WiFi SSID, really no words

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.