title: How to compare the Wifi SSID to specific String
body: <p>I am trying to compare the SSID of the connected wifi to the one I want it connect to. So I am using the following code:</p>
  
  <pre><code>WifiInfo wifiInfo = returnedWifiManager.getConnectionInfo();
  String ssid = wifiInfo.getSSID().toString();
  if (ssid.equalsIgnoreCase("MarkV")) {
     Toast.makeText(WalkitalkiMainActivity.this,
           "Connected to: " + ssid, Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p>when I debug, I find the right SSID name, but the Toast inside the if statement never execute.
  What is the problem ?</p>