Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected void doInBackgroundEx() throws Exception {
- Logger.d("");
- APDeviceInfo ap_device;
- if(wifiManager == null){
- wifiManager = (WifiManager) AppUtils.getAppContext().getSystemService(Context.WIFI_SERVICE);
- }
- Thread.sleep(2000);
- wifiManager.startScan();
- List<ScanResult> results = wifiManager.getScanResults();
- for (ScanResult scanResult : results) {
- ap_device = new APDeviceInfo();
- ap_device.ssid = scanResult.SSID;
- ap_device.security = scanResult.capabilities;
- ap_device.bssid = scanResult.BSSID;
- ap_devices_list.add(ap_device);
- }
- //this.searchAPListListener.onSearchAPFinished(ap_devices_list);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement