Android 解決通過自訂設定開啟熱點後手機搜尋不到熱點的問題。

來源:互聯網
上載者:User

標籤:ctr   triggers   methods   broadcast   driver   cas   man   serve   air   

開發過程中出現了通過自訂設定開啟熱點後手機搜尋不到熱點的問題。

後來通過觀看  /data/misc/wifi  目錄下的  hostapd.conf  檔案,發現是

interface=ap0driver=nl80211ctrl_interface=/data/misc/wifi/hostapdssid=Anffffchannel=6ieee80211n=1hw_mode=gignore_broadcast_ssid=1wowlan_triggers=anymax_num_sta=6eap_server=1wps_state=2config_methods=display physical_display push_buttondevice_name=AndroidAPmanufacturer=Media********model_name=*************model_number=66xxserial_number=1.0device_type=10-00*******wpa=2rsn_pairwise=CCMPwpa_psk=17aa1678a8ae7317122e429ca3****************
ignore_broadcast_ssid=1引起的,其值要是0,才能被手機搜尋到。
後來繼續尋找,發現是在WifiConfiguration config = new WifiConfiguration();
的new過程中將config.hiddenSSID賦值為了true引起的,最後我將config.hiddenSSID其值修改為了false之後,手機就可以正常搜尋到這個熱點了。

Android 解決通過自訂設定開啟熱點後手機搜尋不到熱點的問題。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.