title: Network state changed delay
body: <p>Trying to monitor the offline state of the app by using a broadcast receiver on <code>android.net.conn.CONNECTIVITY_CHANGE</code> but I’m experiencing a huge delay in the connection change when switching on and off the airplane mode, 20 - 30 seconds, is there any faster way? (without polling the connection)</p>
  
  <p>Manifest:</p>
  
  <pre><code>&lt;receiver android:name=".service.NetworkStateReceiver"&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>Receiver:</p>
  
  <pre><code>public class NetworkStateReceiver extends BroadcastReceiver {
  
      public void onReceive(Context context, Intent intent) {
          Log.d(TAG, "\t\t\tCONNECTIVITY CHANGED");
      }
  }
  </code></pre>
  
  <p>EDIT: there is a <code>D/NetworkChangeNotifierAutoDetect: Network connectivity changed, type is: 5</code> log in the logcat that is almost instant, is there a way to capture something that triggers that log?</p>
  
  <p>EDIT: found that <code>android.intent.action.SERVICE_STATE</code> is actually way quicker for reconnection. Dropping connection change still 20 to 30s delay :(</p>