title: Android N not sending android.net.conn.CONNECTIVITY_CHANGE broadcast?
body: <p>I have defined a receiver in a sandbox Android N application:</p>
  
  <pre><code>&lt;receiver
      android:exported="true"
      android:name="com.sandboxapplication.NetworkReceiver"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.net.conn.CONNECTIVITY_CHANGE" /&gt;
      &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>It's rather simple:</p>
  
  <pre><code>public class NetworkReceiver extends BroadcastReceiver {
      private static final String TAG = NetworkReceiver.class.getName();
      @Override
      public void onReceive(Context context, Intent intent) {
          Log.i(TAG, "Received Network Change event.");
      }
  }
  </code></pre>
  
  <p>This receiver is working fine if in my build.gradle file my targetSdkVersion is 23. However, if I set my targetSdkVersion to 24, the receiver never receives anything. In fact if I place a debug break point in my receiver Android Studio gives me the visual indication that it looks like the class is never even loaded into memory.</p>
  
  <p>Did I miss something very basic in the Android N documentation? Is there a new way to detect connectivity change events?</p>