title: Android real network connection status
body: <p>How to get to know the real connectivity state of the device. In my application I registered to the ConnectivityManager.CONNECTIVITY_ACTION intent. I receive intents, and they say, that there is connectivity on the device:</p>
  
  <pre><code>ConnectivityManager.EXTRA_NO_CONNECTIVITY from intent == false
  
  NetworkInfo ni = connectivityManager.getActiveNetworkInfo();
  ni.isAvailable() == true
  ni.isConnected() == true
  </code></pre>
  
  <p>And that is right, device is connected, for example, to the wifi point and the signal strength is ok, but application can't connect to the server because internet access is currently broken on the providers side. It looks like device is know about this problem because it grayed wifi icon on the status bar.</p>
  
  <p>How to get to know the real state of the internet connection?</p>