javaandroidandroid-wifiwifimanagerandroid-wireless

how to scan for wireless network and connecting programmatically in android?


I'm trying to build this app which scans and connects to wireless networks. I used a sample code from the following link

http://www.androidsnippets.com/scan-for-wireless-networks

But the list it returns seem to contain duplicates. Also can someone give me an example as to how to connect to a particular network programatically please?

Thank you


Solution

  • You already have the list with you, only issue i guess you are having is it has duplicate which can be removed easily. Now to connect to a particular network Refer to this

    Hope this helps !!