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

  • Home
  • SEARCH
  • 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 7866979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:35:05+00:00 2026-06-03T00:35:05+00:00

It is important for my Android application that the phone clock is correctly set.

  • 0

It is important for my Android application that the phone clock is correctly set. Is there a way to automatically check against a time server that it is correctly set, so that I can alert the user if it isn’t? If not, I will just have to code it so that it checks the phones clock against my server time.

I have looked on Google but can’t find anything that does what I require.

  • 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-06-03T00:35:06+00:00Added an answer on June 3, 2026 at 12:35 am

    Most phones have their internal clock adjusted using the time provided by the cellular network. AFAIK there is not built in API to check the time against some time server, although it should be fairly simply to query the server of your choice to get the current time. Although you’ll have to account for errors that are introduced due to amount of time it takes to query and get a response from the server. See http://en.wikipedia.org/wiki/Network_Time_Protocol

    If you find that the system time is off you can always correct it using:SystemClock.setCurrentTimeMillis() although I’m not sure if this will stick or if the phone will end up re-resetting the clock using information from the cellular network.

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

Sidebar

Related Questions

May i achieve that server side application (using android bluetooth API)connect to particular client
Here's the part of the Manifest that I believe is important: <application android:icon=@drawable/icon android:label=TestApplication
I've developed an application in android and one of the important requirements is to
I have an Android application that generates some HTML which is rendered locally, in
How would one go about sending data back to server, from an android application?
My application gets killed each time that it comes back from the screen-off-state. I
I am writing an application that communicates using sockets. I have a server running
I have an android application that uses a datastructure consisting couple of binary trees
As Android developers, we know the important of testing on physical devices--and as many
Screenshot Important Note : This application does not support Internet Explorer. I will be

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.