I have trying to do something when I get to know that in my wifilist this SSID is present
My code is somewhat :
List<ScanResult> wifilist = wifi.getScanResults();
for(int i=0;i<wifilist.size();i++){
if (wifilist.get(i).SSID.equals("Wifi1")){
// Do somthing
}
}
Where Wifi1 is name of the wifi network.
But I m not able to do so as if it seem wifilist.get(i).SSID isn't able to compare it to "Wifi1". If you can tell me where I am wrong