SensorModelDataCollector/src/com/clarkson/sensormodeldatacollector/WiFiScanActivity.java
/*
    Registers the wifi scan broadcast receiver
     */
Registers the wifi scan broadcast receiver
Registers the wifi scan broadcast receiver
public void registerWifiScanReceiver()
    {
        registerReceiver(mBroadcastReceiver = new BroadcastReceiver()
        {
            @Override
            public void onReceive(Context c, Intent intent)
            {
                mWifiManagerScanResults = mWifiManager.getScanResults();
                mWifiManagerScanResultsCount = mWifiManagerScanResults.size();
                Log.d(getLocalClassName(), "Step 4: HandleScanResults");
                handleScanResults();
            }
        }, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
        mReceiverRegistered = true;
    }
public void registerWifiScanReceiver ( ) { registerReceiver ( mBroadcastReceiver = new BroadcastReceiver ( ) { @ Override public void onReceive ( Context c , Intent intent ) { mWifiManagerScanResults = mWifiManager . getScanResults ( ) ; mWifiManagerScanResultsCount = mWifiManagerScanResults . size ( ) ; Log . d ( getLocalClassName ( ) , "Step 4: HandleScanResults" ) ; handleScanResults ( ) ; } } , new IntentFilter ( WifiManager . SCAN_RESULTS_AVAILABLE_ACTION ) ) ; mReceiverRegistered = true ; }
Registers the wifi scan broadcast receiver
Registers the wifi scan broadcast receiver