Created
May 23, 2018 06:47
-
-
Save ssaurel/675e9d5df5ddbc12100bff3838a3431d to your computer and use it in GitHub Desktop.
Starting to scan WiFi on the SSaurel's Blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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