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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:32:40+00:00 2026-06-04T16:32:40+00:00

Short version : does Android reboot the phone (literally reboot) to get rid of

  • 0

Short version: does Android reboot the phone (literally reboot) to get rid of foreground services? If so, in what cases?

Long version: I wrote a GPS service which registers itself as a foreground service (in this case this is a good idea – when I run it, it is the single most important thing on my phone 😉 ). While testing, this service is a big resource consumer – it gets GPS data every second and writes to SQLite DB file on SD card. Later I will use internal memory and make poll times longer, but I need the test data for now.

The service works as intended. I have created an Activity that starts & stops it and the results look fine. But when I kept it running the phone rebooted itself after some time (half an hour or so). Since I never noticed this in normal usage, I am attributing this to my service. However, I have no idea what is causing this – should I request a wakelock for CPU? (if this is the problem, wouldn’t phone just shutdown?) Did I run out of memory? Did I use too much battery? (it was half full) Is there a log where I can check why the phone rebooted?

Environment: Xperia X10, Android 2.3.3.

  • 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-04T16:32:41+00:00Added an answer on June 4, 2026 at 4:32 pm

    AFAIK, no. That would be unduly harsh to the user. There is nothing about a foreground service that somehow prevents the OS from terminating its process like any other.

    My guess is that you are tripping over some firmware bug with your device.

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

Sidebar

Related Questions

Short version: Why does Visual Studio tell me that the code has thrown a
Short version: I have a similar setup to StackOverflow. Users get Achievements. I have
Short version (if you can answer the short version it does the job for
Short Version: Does anyone know how to do a simple date insert using Doctrine2?
I divided my problem into a short and a long version for the people
Short Version I want to extend SoapClient so it does this internally when accessing
When developing with features introduced with in the new Android OS version, does one
Short Version: Does anyone know of a way --inside a SQL 2000 trigger-- of
Short Version Does BeginReceiveFrom() handle per client? My understanding was its callback was triggered
The short version: do I need to do something tricky to get JDialog's setMaximumSize()

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.