问题
How can connect to a specific wifi which is password protected?
Scenario: There are four wifi networks but my app needs to connect to specific one whilst providing a password.
回答1:
You can't there is no public API to do this.
回答2:
You have to manually select a wifi network from the settings.
来源:https://stackoverflow.com/questions/8213862/how-can-i-connect-to-a-password-proctected-wifi-named-as-a