Hi, I'm learning the StatusBarPolicy.java as a reference for implementing a WiFi Monitor:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=services/java/com/android/server/status/StatusBarPolicy.java;hb=HEAD I've noticed something strange with the processing of the SUPPLICANT_CONNECTION_CHANGE_ACTION actions. 1. First, the BroadcastReceiver registers with the following filters (including the SUPPLICANT_CONNECTION_CHANGE_ACTION): filter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); filter.addAction(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION); filter.addAction(WifiManager.NETWORK_STATE_CHANGED_ACTION); filter.addAction(WifiManager.RSSI_CHANGED_ACTION); 2. The onReceive method calls the updateWifi for the processing. However, the SUPPLICANT action is not handled here: if (action.equals(WifiManager.NETWORK_STATE_CHANGED_ACTION) || action.equals(WifiManager.WIFI_STATE_CHANGED_ACTION) || action.equals(WifiManager.RSSI_CHANGED_ACTION)) { updateWifi(intent); } 3. updateWifi however tries to handle the SUPPLICANT_CONNECTION_CHANGE_ACTION anyway: else if (action.equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) { ... } It seems to me that the SUPPLICANT_CONNECTION_CHANGE_ACTION is left unhandled. Is it a bug or am I missing something? Thanks Alex -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

