ConnectivityManager.getBackgroundDataSetting() deprecated, what to use instead?
<p>Previously one could use:</p>

<pre><code>ConnectivityManager.getBackgroundDataSetting();
</code></pre>

<p>to check if the user had background data setting = true. This method is now deprecated:</p>

<pre><code>http://developer.android.com/reference/android/net/NetworkInfo.html
</code></pre>

<p>The docs say to use:</p>

<pre><code>ConnectivityManager.getActiveNetworkInfo();
</code></pre>

<p>instead, which returns a NetworkInfo object, but what's the equivalent check in NetworkInfo then?</p>

<p>Thanks</p>
