1

I can get the list of WiFi access points using

WifiManager mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
List<ScanResult> results = mWifiManager.getScanResults();

I have found ways to select and add a network to this list, but no way of removing them.

My app should check each Wifi network, then discard(disallow the user to select) the ones that don't fit my specifications.

Bob Jansen
  • 1,215
  • 2
  • 12
  • 31

1 Answers1

2

use removeNetwork(NetId) or removing network link:

public boolean removeNetworkLink(int NetId) {
return wifiManager.removeNetwork(NetId);
}

but you must call saveConfiguration() after removing network link from list

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213