Closed PrasannaVenkadesh closed 8 years ago
If you are interested in the Bluetooth Scanner you might want to look at the BluetoothScanner.java file instead of WifiScanner.java.
Regarding wifi connections, it is all managed by the android system, I don't manage them myself I just listen at the BroadcastIntent throws by android such as CONNECTED of DISCONNECTED. The WifiScanner.java is not currently used by the project. My goal would be to automatically connect to rumble access point only if the user isn't connected to an AP already but I haven't done it yet.
there is no progress bar in wifi because unlike bluetooth, scanning is done constantly in WiFi (passive scanning by listening to beacon packet sent from nearby AP), though active scanning can be done as well, it doesn't disrupt the connections quiet as much as in bluetooth.
@Marlinski I am trying to mimic the progress bar that appears between
BluetoothScanStarted
andBluetoothScanEnded
event for Wifi Scanning.I can see the
WifiScanner.java
class, and also I see this particular log statement,but this statement is not logged when I checked with
BluetoothScanner log statements are getting logged on Scanner Started, intervals between scanning and when it ends.
I am interested to know how WiFi connections are managed.