From the Android document we know that WiFiManager.startScan()
invoke a passive WiFi scan. It usually takes more time than an active scan. As a result, I would like to invoke an active scan using the method below.
In the previous WiFiManager.java there is a hidden method called startScanActive
. We cannot call it directly, but we can invoke it via java reflection. What does @hide mean in the Android source code?
However, this method disappeared in the Android 4.3+. Then, how to begin an active WiFi scan in Android 4.3+?
Thank you