Android: While doing Wi-Fi authentication showing issue with NEXUS -
i doing wifi authentication below code:
string networkpass = constants.password; wificonfiguration conf = new wificonfiguration(); conf.ssid = "\"" + myssidname + "\""; conf.presharedkey = "\""+ networkpass +"\""; wifi.addnetwork(conf); list<wificonfiguration> list = wifi.getconfigurednetworks(); wifi.disconnect(); for( wificonfiguration : list ) { if(i.ssid != null && i.ssid.equals("\"" + myssidname + "\"")) { wifi.enablenetwork(i.networkid, true); break; } } wifi.reconnect();
it working fine , no issue htc , motorola when trying authenticate nexus(motorola nexus 6 & 7),its not working. idea appreciated.thank :)
Comments
Post a Comment