コード例 #1
0
 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>());
 }
コード例 #2
0
 public void removeAllSoftApConfigs() {
   for (String ssid : loadSSIDStringSetWithKey(KEY_SOFT_AP_SSIDS)) {
     WiFi.removeNetwork(ssid, ctx);
   }
   saveSSIDsWithKey(KEY_SOFT_AP_SSIDS, new HashSet<String>());
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }