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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:27:03+00:00 2026-05-23T08:27:03+00:00

I have an application with a Chronometer in its main activity. The Chronometer is

  • 0

I have an application with a Chronometer in its main activity. The Chronometer is used as a timer. This timer should keep running once the device’s screen is off. I noticed that once the timer is running and I turn off my screen for a longer period of time, and turn in on again, the Chronometer stops running (it’s reset to 00:00). If I off my screen for perhaps 2 hours, it would still run, but once it’s over night (approx. 8 hours), the next morning the Chronometer stopped running. How can I achieve a behavour that the Chronometer runs until the user turns it off, even if the screen is off for some hours? Thanks.

  • 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-23T08:27:04+00:00Added an answer on May 23, 2026 at 8:27 am

    Is it really important to keep it running? It will drain user’s battery.

    I mean, why don’t just save the time when the app is closed or pause or whatever (as simple as saving a long: System.currentTimeMillis())… then, when it’s restarted or resumed just calculate how much it should have run by the time you resumed it.

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

Sidebar

Related Questions

I have application with this code: Module Startup <STAThread()> _ Public Sub Main() Try
i have application first this application is used by customer in demo mode and
I have Application X with Subform x1, x2, x3. The Subform has, because its
I have an application that has a chronometer, I need to set the start
I have application which is for paranoic users who used to store their sensitive
i have application in which i have a web server api .this is my
I have application based on this tutorial Method I use to test connection to
I have application I want a button to open another screen with done button
I have application with two thread. One of them (T1) is main GUI form,
I have application which loads images like this: someImage = Image.FromFile(@picture.png); and another application

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.