0

I have a question, Is there any get or set method for auto connection so that I can set auto connect true or false for selected wifi.

MostlyJava
  • 345
  • 3
  • 21
  • https://stackoverflow.com/questions/4374862/how-to-programmatically-create-and-read-wep-eap-wifi-configurations-in-android/4374934#4374934 – Alex2452 Jan 02 '18 at 15:28
  • https://android-developers.googleblog.com/2016/07/connecting-your-app-to-wi-fi-device.html – vikas kumar Jan 02 '18 at 15:31
  • I would hope that the user needs to confirm the connection at least the first time. Automatically connecting someone to a WiFi without their consent feels like a pretty serious security issue if it was possible. – Michael Jan 02 '18 at 15:31
  • @Michael they have to authenticate first and there is a switch to set auto connect true or false. – MostlyJava Jan 02 '18 at 15:50
  • @Hubertoss I am doing this to connect a WiFi but,auto connect wifi I am not getting. – MostlyJava Jan 02 '18 at 15:59
  • Hmm, I am not sure whether this is possibile ,but I would try to ask user to set auto connection for the wifi network and investigate if you can programaticallt assign top-priority to the network SSID that your app uses. – Alex2452 Jan 02 '18 at 16:03
  • Is that possible in rooted device? If yes then how? – MostlyJava Jan 02 '18 at 17:36

0 Answers0