Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created May 23, 2018 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssaurel/675e9d5df5ddbc12100bff3838a3431d to your computer and use it in GitHub Desktop.
Save ssaurel/675e9d5df5ddbc12100bff3838a3431d to your computer and use it in GitHub Desktop.
Starting to scan WiFi on the SSaurel's Blog
private void scanWifi() {
arrayList.clear();
registerReceiver(wifiReceiver, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
wifiManager.startScan();
Toast.makeText(this, "Scanning WiFi ...", Toast.LENGTH_SHORT).show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment