Hi, all

This question is about wifi, to add an AccessPoint to
ConfiguredNetworks. I appreciate if anyone could help, thanks!

I get SSID, BSSID from ScanResult(mScanResult is one of which), and
then add it to network

mWifiConfiguration.SSID = convertToQuotedString(mScanResult.SSID);
mWifiConfiguration.BSSID = mScanResult.BSSID;
int connNetworkId = mWifiManager.addNetwork(mWifiConfiguration);

Finally, I got this trouble : mWifiManager.getConfiguredNetworks().size
() is 0!!!
Why the addNetwork() function can't add it?

PS: The return value[connNetworkId] is correct, like 0,1,2,etc, not
-1, but mWifiConfiguration.netWorkId is -1(even I set it before
addNetwork)

Regards!
Ira

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to