remove Wifi from wifi list - Android android.net.wifi

Android examples for android.net.wifi:WifiManager

Description

remove Wifi from wifi list

Demo Code

import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiManager;

public class Main {

  public static boolean removeWifi(WifiManager wifiManager, WifiConfiguration wifi) {
    return wifiManager.removeNetwork(wifi.networkId);
  }/* ww  w .  j  a v  a  2 s  .c  om*/

}

Related Tutorials