title: Android - Cant Remove Wifi Network Programatically- The method removeNetwork(int) in the type WifiManager is not applicable for the arguments (String)
body: <p>I'm attempting to remove my wifi network programatically - however I cannot seem to get it to remove/forget the currently connected wifi connection. This should be a pretty simple task - so I'm not sure exactly what I'm doing wrong.</p>
  
  <p>I'm using the following StackOverflow post as an example:</p>
  
  <p><a href="https://stackoverflow.com/questions/11134383/how-to-forget-a-wireless-network-in-android-programmatically">How to forget a wireless network in android programmatically?</a></p>
  
  <pre><code>     public class KillTimer extends Activity {
  
       @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.killtimer);
         WifiManager wifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE);
         wifiManager.getConnectionInfo().getSSID()
         wifiManager.getConnectionInfo().getNetoworkId();
         wifiManager.removeNetwork(wifiConfig.networkId);
         wifiManager.saveConfiguration();
  
     }}
  </code></pre>