예제 #1
0
 @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);
   }
 }
예제 #2
0
 public String toKeyString() {
   NetworkDetail networkDetail = mNetworkDetail;
   if (networkDetail != null) {
     return networkDetail.toKeyString();
   } else {
     return String.format("'%s':%012x", mScanResult.BSSID, Utils.parseMac(mScanResult.BSSID));
   }
 }