Android 6 : Connect to specific wifi network programmatically not working
Android 6 : Connect to specific wifi network programmatically not working I am trying to connect to a wifi network by giving the SSID and pass using WifiManager configurations. Based on this threads solution: How do I connect to a specific Wi-Fi network in Android programmatically? The reconnect method is called. but nothing happens (not connected). Is the Android version (6.0.1) for something? If yes then how to perform a network connection programmatically on Android 6? Did you get solution? – SKK Jul 19 '16 at 14:32 6 Answers 6 A few things have changed about how you connect to a WiFi network since android Marshmallow. The following code will help you...If you are using Android 6.0 or lowlevel versions... public void connectToWifi(){ try{ ...