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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:02:03+00:00 2026-06-05T18:02:03+00:00

My app uses Handler and sendEmptyMessageDelayed to get timed messages that produce debug output.

  • 0

My app uses Handler and sendEmptyMessageDelayed to get timed messages that produce debug output. When I push power on my Galaxy Tab, the screen turns off but the debug messages keep coming.

I would rather that the CPU go to sleep. Is this happening because it’s plugged in to the PC? Or could my app be doing something wrong that keeps the device awake?

  • 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-05T18:02:06+00:00Added an answer on June 5, 2026 at 6:02 pm

    Turning the screen off doesn’t put the phone into “sleep” mode, similarly to turning your computer monitor off won’t put your computer into “sleep” mode. Mobile devices are designed to have quick responsiveness when you need them, thus never go to sleep unless explicitly told to (If such a function even exists).

    In the context of an application, processing on the main (UI) thread decreases dramatically since UI elements are no longer being drawn to the screen. However, background processes still function as you would expect them to regardless of the screen state.

    If you want your app to stop some processing when not in the foreground, check for calls to onPause() in your Activities, and do what you wish. onPause() will be called when changing Activities, turning the screen off, or moving the app into the background.

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

Sidebar

Related Questions

My app uses Mochiweb. I have noticed that Mochiweb files reside in the myapp/deps/mochiweb
Our app uses a component that requires a license file in the directory with
I have to migrate a php4 app that uses session_set_save_handler() to php5. In php4
I successfully deployed the demo web app that comes with Jython. It uses modjy
I want to create an app that uses the internet and I'm trying to
I'm working on an app that uses the standard logging module to do logging.
I am (re)writing an android app that uses an SQLite database to store various
I have a silverlight app that uses a simple Login.aspx page. I have all
Context: I have a WPF App that uses certain unmanaged DLLs in the D:\WordAutomation\MyApp_Source\Executables\MyApp
I'm writing a web-app that uses several 3rd party web APIs, and I want

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.