Has the user enabled the mobile data?
<p>I want to get the "Use mobile networks" settings value (true or false). There's a way of knowing if wifi is enabled and it can be done like this:</p>

<pre><code>WifiManager wm = (WifiManager)context.getSystemService(Context.WIFI_SERVICE);
int state = wm.getWifiState();
boolean pref = state == WifiManager.WIFI_STATE_ENABLED || state == WifiManager.WIFI_STATE_ENABLING;
</code></pre>

<p>But how can I do the same check for data?</p>
