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 776111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:24:06+00:00 2026-05-14T19:24:06+00:00

Android doesn’t appear to provide a way for a user application to change the

  • 0

Android doesn’t appear to provide a way for a user application to change the system time. What I would like to do instead is to get the user to change the time. It is easy to open up the Date & Time settings:

startActivity(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS));

What I would like to know is:

  1. Is it possible to link directly to the set time option?
  2. Is it possible to check that the user set the time correctly? I am aware of the TIME_CHANGED broadcast message, but I can’t find any documentation on it

Update:

The TIME_CHANGED broadcast message doesn’t provide any information about how it changed. This isn’t explicitly documented, but I tried getData and getExtras and received no information. Additionally, looking at the rest of the documentation it appears that no data or extras are passed unless explicitly documented. Similarly, it is actually documented the ACTION_DATE_SETTINGS takes no input and it is implicit that it takes no extras, so there is no way to control it more precisely.

CommonsWare pointed out what should have been obvious to me – that simply checking that the user set the time to the value retrieved from the server, without worrying about the time spent in the options menu, will almost always work. As this assumption could actually be false, if I were using this method, then I would ensure the message said that the time was probably set correctly or incorrectly, rather than using a definite statement.

However, I discovered elapsedRealtime and so I will actually implement this detection properly.

  • 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-14T19:24:06+00:00Added an answer on May 14, 2026 at 7:24 pm

    Is it possible to link directly to the
    set time option?

    Try:

    startActivity(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS));
    

    Is it possible to check that the user
    set the time correctly?

    :: shrug ::

    After the application gets control again, examine the time.

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

Sidebar

Related Questions

In Android I am writing an application in which, I would like to capture
Looks like Android SDK doesn't come with any AVDs byt default. We need to
Why doesn't Android throw a SocketException when the socket is closed? I get an
Can anybody tell my why this doesn't work in the Android emulator? From the
In my Android application, when I rotate the device (slide out the keyboard) then
Has anyone managed to use ItemizedOverlays in Android Beta 0.9? I can't get it
I have two threads in an Android application, one is the view thread, and
I've installed the Android SDK and the ADT plugin, but Android doesn't show up
The Android virtual device (a simulated Android environment) doesn't run very smoothly on my
The Home sample in the android sdk doesn't implement the Add item, which bring

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.