public void reenableWifiNetworks() { log.v("reenableWifiNetworks()"); for (String ssid : loadSSIDStringSetWithKey(KEY_DISABLED_WIFI_SSIDS)) { WiFi.reenableNetwork(ssid, ctx); } saveSSIDsWithKey(KEY_DISABLED_WIFI_SSIDS, new HashSet<String>()); }
public void removeAllSoftApConfigs() { for (String ssid : loadSSIDStringSetWithKey(KEY_SOFT_AP_SSIDS)) { WiFi.removeNetwork(ssid, ctx); } saveSSIDsWithKey(KEY_SOFT_AP_SSIDS, new HashSet<String>()); }
public void onWifiNetworkDisabled(String ssid) { log.v("onWifiNetworkDisabled() " + ssid); Set<String> ssids = set(loadSSIDStringSetWithKey(KEY_DISABLED_WIFI_SSIDS)); ssids.add(ssid); saveSSIDsWithKey(KEY_DISABLED_WIFI_SSIDS, ssids); }
public void onSoftApConfigured(String newSsid) { // make a defensive copy of what we get back Set<String> ssids = set(loadSSIDStringSetWithKey(KEY_SOFT_AP_SSIDS)); ssids.add(newSsid); saveSSIDsWithKey(KEY_SOFT_AP_SSIDS, ssids); }