@Override public String toString() { try { return String.format("'%s'/%012x", mScanResult.SSID, Utils.parseMac(mScanResult.BSSID)); } catch (IllegalArgumentException iae) { return String.format("'%s'/----", mScanResult.BSSID); } }
public String toKeyString() { NetworkDetail networkDetail = mNetworkDetail; if (networkDetail != null) { return networkDetail.toKeyString(); } else { return String.format("'%s':%012x", mScanResult.BSSID, Utils.parseMac(mScanResult.BSSID)); } }