Code example for WifiManager

Methods: getScanResultsstartScan

0
		public void run() { 
			if(mListener != null)
				mListener.OnStartScan();
			mIsScanningInProgress = true;
			 
			if(mManager.startScan() == false)
				if(mListener != null) {
					mListener.OnScanFailed();
					return; 
				} 
			 
			if(mListener != null)
				mListener.OnGetScanResult(mManager.getScanResults());
			 
			mIsScanningInProgress = false;
			super.run(); 
		} 
	} 
}