Android solves the problem that the mobile phone cannot find the hotspot after the hotspot is opened through custom settings ., Android hotspot

Source: Internet
Author: User

Android solves the problem that the mobile phone cannot find the hotspot after the hotspot is opened through custom settings ., Android hotspot

During the development process, the mobile phone cannot find the hotspot after the hotspot is opened through custom settings.

Later, by viewing the hostapd. conf file in the/data/misc/wifi directory, we found that

interface = ap0
driver = nl80211
ctrl_interface = / data / misc / wifi / hostapd
ssid = Anffff
channel = 6
ieee80211n = 1
hw_mode = g
ignore_broadcast_ssid = 1
wowlan_triggers = any
max_num_sta = 6
eap_server = 1
wps_state = 2
config_methods = display physical_display push_button
device_name = AndroidAP
manufacturer = Media ********
model_name = *************
model_number = 66xx
serial_number = 1.0
device_type = 10-00 *******
wpa = 2
rsn_pairwise = CCMP
wpa_psk = 17aa1678a8ae7317122e429ca3 ****************
Ignore_broadcast_ssid = 1, its value must be 0 in order to be searched by the mobile phone.
Later, I continued searching and found that it was in WifiConfiguration config = new WifiConfiguration ();
During the new process, the config.hiddenSSID was set to true. After I changed the value of config.hiddenSSID to false, the phone can search this hotspot normally. 


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.