On 6.0 and above, a WiFi network can only be modified or removed by same exact app as originally created this network.
-- K 2016-04-28 21:39 GMT+03:00 Hogga <mlrti...@gmail.com>: > 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 > <https://groups.google.com/d/msgid/android-developers/72a42b45-3656-4db3-a090-aad6a60cc57e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAN7dqjDTWo5n0VwK-DYLdJzoS1abS1e2ZPLyC%3D3yhVkfXjSeiQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.