The connectToSecureNetwork method attempts to connect to wifi
matching explicitly the ssid parameter. This will fail if the
password doesn't match or the isWep parameter isn't set correctly.
Android does not support WEP Networks.
The connectToSecureNetworkByPrefix method attempts to connect to the nearest
wifi network with the ssid prefix matching the ssidPrefix parameter.
This will fail if the password doesn't match or the isWep parameter
isn't set correctly. Android does not support WEP Networks.