I've got something like this:
wifiNetworks = (ArrayList<ScanResult>) mWifiManager.getScanResults();
Now I can simply get wifi SSID:
wifiNetworks.get(0).SSID
I don't know if network is WEP, WPA, does it have password or not, so I just want to create an Intent, put there SSID or ScanResult and send it to Settings or wherever in order to let user to enter the password and connect to that network. Is it possible? And if not, what is the easiest way to get information about network type and connect programatically to it?