Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6836477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:21:37+00:00 2026-05-26T23:21:37+00:00

I would like in my application to find a way to synch the date

  • 0

I would like in my application to find a way to synch the date and time with something given by an external source.

I don’t want to use the phone time because I might get a difference of maybe 5 minutes around real time. and 5 minutes extra or less = 10 minutes!

I have heard about time information in the GPS satellites or in Network antennas.

I have tried with System.getCurrentTime but i get the current the of the device, so, if my device is set up 5 minutes earlier, it display the wrong time.

EDIT

To make a short question: how can I get this time?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:21:37+00:00Added an answer on May 26, 2026 at 11:21 pm

    I didn’t know, but found the question interesting. So I dug in the android code… Thanks open-source 🙂

    The screen you show is DateTimeSettings. The checkbox “Use network-provided values” is associated to the shared preference String KEY_AUTO_TIME = "auto_time"; and also to Settings.System.AUTO_TIME

    This settings is observed by an observed called mAutoTimeObserver in the 2 network ServiceStateTrackers:
    GsmServiceStateTracker and CdmaServiceStateTracker.

    Both implementations call a method called revertToNitz() when the settings becomes true.
    Apparently NITZ is the equivalent of NTP in the carrier world.

    Bottom line: You can set the time to the value provided by the carrier thanks to revertToNitz().
    Unfortunately, I haven’t found a mechanism to get the network time.
    If you really need to do this, I’m afraid, you’ll have to copy these ServiceStateTrackers implementations, catch the intent raised by the framework (I suppose), and add a getter to mSavedTime.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to find a way to compile and package our iPhone application
I would like to install application in google tv emulator, but it don't install
I would like to find the best way to parse an UML Diagram that
I would like my application to look similar to that of the Windows version:
I would like an application which is not readily apparent to casual perusal of
I'm attempting to create an application for SharePoint. I would like this application to
I would like a web application to learn things about its environment so that
My client would like a business application to support 'every possible device'. The application
We have a customer that would like to modify application user messages that we
I would like to create an application which can learn to classify a sequence

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.