title: Android 6 : Connect to specific wifi network programmatically not working
body: <p>I am trying to connect to a wifi network by giving the SSID and pass using WifiManager configurations.</p>
  
  <p>Based on this threads solution: 
  <a href="https://stackoverflow.com/questions/8818290/how-to-connect-to-a-specific-wifi-network-in-android-programmatically">How do I connect to a specific Wi-Fi network in Android programmatically?</a></p>
  
  <p>The reconnect method is called. but nothing happens (not connected).</p>
  
  <p>Is the Android version (6.0.1) for something? 
  If yes then how to perform a network connection programmatically  on Android 6? </p>