I have a really weird issue with WifiManager: I connect to a network
using WifiManager.enableNetwork(int netId, boolean disableOthers),
with setting disableOthers to 'true'. This seems necessary in order to
reliably establish a connection. However, this sets all other saved
networks to 'disabled', meaning that I cannot connect to them until I
re-activate them in the wifi settings.

I tried to enable the previously enabled networks like this:

wifiConfiguration.status = WifiConfiguration.Status.ENABLED;
wifiManager.updateNetwork(wifiConfiguration);
...
wifiManager.saveConfiguration();

However, after this, all networks' 'status' fields are still set to 1
(WifiConfiguration.Status.DISABLED). I also get a weird log message on
saveConfiguration():

03-08 16:14:26.125: W/BackupManagerService(110): dataChanged but no
participant pkg='com.android.providers.settings' uid=10060

Any ideas?

-- 
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