title: ConnectivityManager getNetworkInfo(int) deprecated
body: <p>Using <em>compileSdkVersion 23</em>, however trying to support as far back as 9.</p>
  
  <p><a href="https://developer.android.com/reference/android/net/ConnectivityManager#getNetworkInfo(int)" rel="noreferrer"><code>getNetworkInfo(int)</code></a> was deprecated in 23. The suggestion was to use <a href="https://developer.android.com/reference/android/net/ConnectivityManager#getAllNetworks()" rel="noreferrer"><code>getAllNetworks()</code></a> and <a href="https://developer.android.com/reference/android/net/ConnectivityManager#getNetworkInfo(android.net.Network)" rel="noreferrer"><code>getNetworkInfo(Network)</code></a> instead. However both of these require minimum of API 21.</p>
  
  <p>Is there a class that we can use in the support package that can assist with this?</p>
  
  <p>I know that a solution was proposed <a href="https://stackoverflow.com/questions/32242384/getallnetworkinfo-is-deprecated-how-to-use-getallnetworks-to-check-network">before</a>, however the challenge of my minimum API requirements of 9 poses a problem.</p>