How to make a wifi connection and show available wifi in listpicker

Hi, I am creating a wifi connection that can communicate with arduino to just simply turn on and off the lights, but I wanted to make a list view that the user can pick the available wifi and make that as selected then once selected it will connect to the wifi router and I can send data in arduino using the app to simply lights on and off . Thank you