title: Deal with inactive wi-fi networks
body: <p>Suppose phone finds open wi-fi network and connects to it. But wi-fi network is "inactive", i.e. when you open browser you see prompt for credentials. I have many apps on my phone(for example web-browser), which fail to work in such cases. 
  I want to send data using mobile network, but system still tries to use <em>wi-fi.</em></p>
  
  <p><a href="http://developer.android.com/reference/android/net/NetworkInfo.html#isAvailable%28%29"><code>NetworkInfo.isAvailable()</code></a> and <a href="http://developer.android.com/reference/android/net/NetworkInfo.html#isConnected%28%29"><code>NetworkInfo.isConnected()</code></a> still return <code>true</code> for the described <em>wi-fi</em> networks. 
  Any solution?</p>