I suggest you ...

Enable/Disable Location Service Setting

The location service (Settings > Location and Security > "Use Wireless Networks) is a major power hog. It polls for your location every minute. I would like to be able to enable/disable this service based on conditions (at work or home: disable). The preference is LocationManager.NETWORK_PROVIDER (I believe), can this be done?

3 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    jsimboljsimbol shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    declined  ·  CarterAdminCarter (Admin, two forty four a.m.) responded  · 

    This setting cannot be configured by third party apps such as Locale. This is because the location providers are secured settings, which only Android itself is allowed to change.

    I think you might have some incorrect information regarding battery usage. The Android network location provider uses almost 0 power. Regardless of how frequently it updates, it uses information that is already available to the phone, such as which tower the device is connected to. Since that information is already available, the cost of the network location provider is almost free.

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • jsimboljsimbol commented  ·   ·  Flag as inappropriate

        Carter,
        While I believe the first part of your response (after looking into it), I still have to disagree about the power issue. Watch the logcat output of the phone for a few minutes while the screen is turned off and nothing is being used up front (wifi and gos can be turned off too). You'll see every minute that the OS issues a wakelock, does an injectGPSposition and then goes back to sleep. "D/libgps ( 1131): GpsInterface_inject_location( 41.xxxxx, −72.xxxxx, 3510.000)" The total of those calls is killing battery.
        If you disable the location service (uncheck "use wireless networks") then the polling completely stops, the "partial wake usage" of the OS goes way down and battery life goes up.

      • jsimboljsimbol commented  ·   ·  Flag as inappropriate

        Carter,
        While I believe the first part of your response (after looking into it), I still have to disagree about the power issue. Watch the logcat output of the phone for a few minutes while the screen is turned off and nothing is being used up front (wifi and gos can be turned off too). You'll see every minute that the OS issues a wakelock, does an injectGPSposition and then goes back to sleep. "D/libgps ( 1131): GpsInterface_inject_location( 41.xxxxx, −72.xxxxx, 3510.000)" The total of those calls is killing battery.
        If you disable the location service (uncheck "use wireless networks") then the polling completely stops, the "partial wake usage" of the OS goes way down and battery life goes up.

      Knowledge Base and Helpdesk