It's in ConnectivityManager, there is also a broadcast for when the user
changes this setting.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
21.12.2010 1:08 пользователь "Achie" <[email protected]> написал:
> I want to check if the user enabled background data on his/her device
> and display a message if it is disabled.
>
> How can I check if it has been enabled?
> I tried
> Settings.System.getString(getContentResolver(),
> Settings.Secure.BACKGROUND_DATA);
> and
> Settings.Secure.getString(getContentResolver(),
> Settings.Secure.BACKGROUND_DATA);
>
> But they are returning null.
>
> Thank you,
> Achie.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to