Still Wanting to Query the Date / Time Settings

mmieher

Active Member
Licensed User
Longtime User
I am still searching for a way to check if the DATE & TIME settings to see if the "Automatic date & time" box is checked.

I previously had a thread discussion with Erel that concluded this may not be possible. However, I found the following on Google:

java - How do I determine if USE NETWORK PROVIDED VALUES is checked in android programmatically? - Stack Overflow

"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?"

"Answer: android.provider.Settings.System.getInt(getContentResolver(),
android.provider.Settings.System.AUTO_TIME)"

Is there a way to do this in B4A?

Thanks,
Marc
 

mmieher

Active Member
Licensed User
Longtime User
Hours after posting this, I get Erel's message about version 2.71 and viola -- DateTime.ListenToExternalTimeChanges is a new feature that will solve my problem. I know when the users change the time on the phone! Thanks!
 
Upvote 0
Top