0

I am making Android application, and I need to know how I can connect to a wi-fi network programatically. Please give me an example or some other guidance. Thank you.

Kieran
  • 2,554
  • 3
  • 26
  • 38
user1134602
  • 597
  • 1
  • 4
  • 11
  • take a look here: http://stackoverflow.com/questions/4374862/how-to-programatically-create-and-read-wep-eap-wifi-configurations-in-android – Pratik Bhat Jan 07 '12 at 09:54

1 Answers1

0

So before anything, you have to allow your app Internet access in the Manifest. Put this in your Manifest body:

<uses-permission android:name="android.permission.INTERNET" />

Connecting to sites is explained very well here: http://developer.android.com/guide/webapps/webview.html

Please let me know if anything in it is confusing.

ElectronAnt
  • 2,115
  • 7
  • 22
  • 39