I'm getting a SecurityException in a BroadcastRecevier:

```
02-08 12:18:39.169 E/AndroidRuntime(22363): java.lang.RuntimeException: Unable to start receiver surin.de.wakeonlan.BackgroudReceiver: java.lang.SecurityException: WifiService: Neither user 10171 nor current process has android.permission.ACCESS_WIFI_STATE.

02-08 12:18:39.169 E/AndroidRuntime(22363): at surin.de.wakeonlan.BackgroudReceiver.onReceive(BackgroudReceiver.java:26)

```

My BackgroundReceiver Class:

```
@Override
    public void onReceive(Context context, Intent intent) {

      WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
      WifiInfo wifiInfo = wifiManager.getConnectionInfo(); //line 26
      String ssid = wifiInfo.getSSID();

```

The Receiver is registered here in the Manifest:

```
<receiver android:name="surin.de.wakeonlan.BackgroudReceiver"
        android:exported="false">
        <intent-filter>
            <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
        </intent-filter>
    </receiver>

```

This is also in the Manifest inside the Application Tag:

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

```