What does the mWifiServiceMessenger == null exception mean in LogCat?

Upon receipt of a WifiManager system service, such as

WifiManager mainWifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);

I have the following permissions in the manifest file:

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Eclipse LogCat logs error

"mWifiServiceMessenger == null" [Tag: WifiManager]

Everything seems to work fine though. I am returning an instance of WifiManager. But the error is logged, also regardless of the status of Wifi (on or off).

I would like to understand why this error is being logged and what it implies.

+4
source share
2 answers

This error occurs when the device is turned off by WiFi. If the device cannot receive WIFI_SERVICE.

, .

, Wi-Fi, .

WifiManager:

E/WifiManager: mWifiServiceMessenger == null
0

, . CHANGE_WIFI_STATE.

<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
0

All Articles