ConnectivityManager.getBackgroundDataSetting() deprecated in ICS; how to use getActiveNetworkInfo() instead
===

According to the Android SDK docs for `ConnectivityManager`, `getBackgroundDataSetting()` is deprecated in Android 4.x, and `getActiveNetworkInfo()` should be used instead to see if background data is disabled:

<http://developer.android.com/reference/android/net/ConnectivityManager.html#getBackgroundDataSetting()>

But, with Sync turned off, when I query the `NetworkInfo` object within my Service, there's nothing that implies background data is disabled:

    ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
    // getBackgroundDataSetting always returns true on Android 4.x
    if (connMgr != null && !connMgr.getBackgroundDataSetting()) {
    	Log.i(WootsUp.TAG, "background data off");
    	return;
    }
		
    if (connMgr != null) {
    	NetworkInfo netInfo = connMgr.getActiveNetworkInfo();
    	if (netInfo == null || netInfo.isAvailable() == false || netInfo.isConnected() == false) {
    		Log.i(WootsUp.TAG, "no active network");
    		return;
    	}
    }
Neither `isAvailable()` nor `isConnect()` return false when I have Sync turned off.

Is there a different method in `NetworkInfo` I should be querying instead to see if background data is disabled?  FYI I'm using an alarm-driven Service, and not using the SyncAdapter APIs, if that makes a difference.

Thanks,

Rob
