I know there are methods to add and connect to a wifi network
How do I connect to a specific Wi-Fi network in Android programmatically?
But what I need is to connect to a network that is already been saved by the user in the device, Basically I want to connect to the best available network (which user has been connected to earlier) around. I can manage to find the nearby wifi signals and get their strength then I want to connect to the best one.
Also there are couple of inactive threads in SO asking the same question, unfortunately none of them has any answers:
https://stackoverflow.com/questions/24257680/connect-to-a-configured-wifi-network
https://stackoverflow.com/questions/20476702/android-how-do-you-choose-which-previously-saved-wifi-to-connect-to-and-do-it
How to connect to pre-configured Wifi in Android?