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
  • 64,767
  • 30
  • 146
  • 239
Davita
  • 8,928
  • 14
  • 67
  • 119
  • 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
  • 910
  • 8
  • 19