Hi,

I´ve an App in which I want to remove saved Wifi networks, by selecting a 
specific.

Here is my code:

List<WifiConfiguration> savedWifis = wifiMgr.getConfiguredNetworks();

wifiMgr.removeNetwork(savedWifis.get(k).networkId);

wifiMgr.saveConfiguration()

"k" is the selected WiFi in a ListPrefence.


My Problem: 
On one of my smartphones it works wihtout problems (Cyanogenmod 12.1, 
Android 5.1.1), BUT on an other device the selected WiFi is not deleted 
(Android 6.0.1).
wifiMgr.saveConfiguration() returns "true".



Any idea?

Thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/72a42b45-3656-4db3-a090-aad6a60cc57e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to