Marlinski / Rumble

Rumble allows the sharing of messages and pictures without relying on the Internet, in a Delay Tolerant Fashion following the Store-Carry and Forward paradigm
http://disruptedsystems.org
GNU General Public License v3.0
298 stars 32 forks source link

Progress Bar While Scanning in WiFi Mode #36

Closed PrasannaVenkadesh closed 8 years ago

PrasannaVenkadesh commented 8 years ago

@Marlinski I am trying to mimic the progress bar that appears between BluetoothScanStarted and BluetoothScanEnded event for Wifi Scanning.

I can see the WifiScanner.java class, and also I see this particular log statement,

Log.d(TAG, "((( Wifi Scanner started )))");

but this statement is not logged when I checked with

adb logcat WifiScanner:D *:S

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.

Marlinski commented 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.

Marlinski commented 8 years ago

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.