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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -