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

Mr.Noob picture Mr.Noob · Feb 18, 2013 · Viewed 9k times · Source

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

Answer

Alankar Srivastava picture Alankar Srivastava · Feb 18, 2013

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 !!