Back to project page wifiManager.
The source code is released under:
Apache License
If you think the Android project wifiManager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.txmcu.WifiManager; //from w w w .jav a 2 s.co m import java.util.List; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.wifi.ScanResult; import android.net.wifi.WifiManager; import android.util.Log; import com.txmcu.WifiManager.WifiHotManager.WifiBroadCastOperations; /** * ?????? */ public class WifiScanRsultBroadCast extends BroadcastReceiver { private WifiBroadCastOperations operations; private WifiManager mWifimanager; // ?????????? private List<ScanResult> wifiList; public WifiScanRsultBroadCast(WifiBroadCastOperations operations) { this.operations = operations; } @Override public void onReceive(Context context, Intent intent) { Log.i("WifiBroadCast", "into onReceive(Context context, Intent intent)"); if (intent.getAction().equalsIgnoreCase(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) { mWifimanager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); wifiList = mWifimanager.getScanResults(); operations.disPlayWifiScanResult(wifiList); } } }