failed to connect to specific WiFi in android programmatically
问题 I'm using the following code to detect and connect to specific WiFi ssid when I press a button in android. Below is the code. Any help will be appreciated. ssid :- "myHotspot" & password:- "12345678" Button b1 = (Button) findViewById(R.id.button); <br> b1.setOnClickListener(new View.OnClickListener() { <br><br>@Override <br>public void onClick(View v) { wifiConfiguration.SSID = "\"myHotspot\""; wifiConfiguration.preSharedKey ="\"12345678\""; WifiManager wifiManager = (WifiManager)