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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:19:53+00:00 2026-06-10T00:19:53+00:00

I have a Service that creates a wake-lock: pm = (PowerManager) getSystemService(POWER_SERVICE); flags=PowerManager.PARTIAL_WAKE_LOCK; wl

  • 0

I have a Service that creates a wake-lock:

pm = (PowerManager) getSystemService(POWER_SERVICE);
flags=PowerManager.PARTIAL_WAKE_LOCK; 
wl = pm.newWakeLock(flags,"myApp");
wl.acquire();

Next I request location updates via LocationManager.GPS_PROVIDER. That works fine until the device goes to PARTIAL_WAKE_LOCK-sleep, here the GPS location dies. So my question: how can I GPS enable to stay alive during this kind of stand-by? Setting SCREEN_DIM_WAKE_LOCK would work but is not an option because it requires way too much power.

Elmi

  • 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-10T00:19:55+00:00Added an answer on June 10, 2026 at 12:19 am

    What I found out meanwhile: it seems to be device- or operating system version dependent.

    For my Motorola Xoom 2 / Android 3.2 it is possible to turn off the whole screen and the system including GPS stays alive with the partial wake lock.

    For some other devices (reported by users of my app) that seems to stop GPS, they at maximum can dim the screen to keep it alive.

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

Sidebar

Related Questions

I'm using spring ws 2.0.2.RELEASE I have a web service that creates a sales
I have a web service that creates a thread to process some data in
I have developed a sample WCF REST service that accepts that creates an Order
I have this task that creates a service: Target Name=InstallService DependsOnTargets=CopyFiles Exec Command=sc \
I have a web service that creates files on the server. It works great
I have a web service that creates it's own single instance performance counters. When
I have a back-end service that creates unique identifiers for resources. The general idea
I have a REST web service that creates a XMLDocument I am a bit
I have a method in a service class that creates an object: def createContent
I have a service app that creates AppDomain's during the course of its use

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.