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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.