user1911994
user1911994

Reputation: 95

How do I determine if USE NETWORK PROVIDED VALUES is checked in android programmatically?

I have searched n googled everything possible related to this but did not quite find anything concrete. How can i determine if the option USE NETWORK PROVIDED VALUES in the date/time settings is checked?

Upvotes: 1

Views: 1164

Answers (2)

raja sid
raja sid

Reputation: 83

android.provider.Settings.System.AUTO_TIME

Is Deprecated

People who were searching answer for this use this

android.provider.Settings.System.getInt(getContentResolver(),
                    android.provider.Settings.Global.AUTO_TIME);

BTW, Matthias Robbers, Thanks another ton :)

Upvotes: 4

Matthias Robbers
Matthias Robbers

Reputation: 15728

android.provider.Settings.System.getInt(getContentResolver(),
    android.provider.Settings.System.AUTO_TIME)

Upvotes: 7

Related Questions