duplicate SSID in scanning wifi result
i'm trying to make an app that can create a list of available wifi access point. here's part of the code i used: x = new BroadcastReceiver() { @Override public void onReceive(Context c, Intent intent) { results = wifi.getScanResults(); size = results.size(); if (results != null) { for (int i=0; i<size; i++){ ScanResult scanresult = wifi.getScanResults().get(i); String ssid = scanresult.SSID; int rssi = scanresult.level; String rssiString = String.valueOf(rssi); textStatus.append(ssid + "," + rssiString); textStatus.append("\n"); } unregisterReceiver(x); //stops the continuous scan textState