public ScanLimitModelManager 自循环扫描() { wifiScanManager.自循环扫描(); if (scanLimitModelManager == null) { scanLimitModelManager = new ScanLimitModelManager(wifiScanManager, databaseManager); } return scanLimitModelManager; }
public LocatorRunController(Activity activity) { if (databaseManager == null) { databaseManager = new DatabaseManager(activity); } if (wifiScanManager == null) { wifiScanManager = new WifiScanManager(activity); wifiScanManager.setOnGotWifiResultListener( new OnGotWifiResultListener() { @Override public void getScanResult(List<Wifi> wifis) { databaseManager.add(wifis); } }); } }