0

I need to enumerate all avaliable wifi connections and connect to the one which is not password protected. Any help/link/suggestion would be greatly appreciated. Thanks.

ThinkingStiff
  • 63,812
  • 29
  • 142
  • 238
Davita
  • 8,610
  • 12
  • 62
  • 114
  • hope following answer will help you : [How to connect to a specific wifi network in Android programmatically?]: http://stackoverflow.com/questions/8818290/how-to-connect-to-a-specific-wifi-network-in-android-programmatically – Ryan May 13 '13 at 03:43

1 Answers1

1

WifiManager. You'll find a way to request for a WiFi scan : startScan(), retrieve the results (using a BroadcastReceiver) : getScanResults() and check within those results which access points provide you password-free association. addNetwork() and enableNetwork() will help you to connect to any of those.

PeterGriffin
  • 870
  • 8
  • 19