battery

Android LocationListener polling interval

I have a Service that uses the LocationListener, and it will be running from boot, indefinitely. My question is, how often is too often to listen for location updates? Is 5 minutes a battery killer? What about 1? ...

Read the current battery charge/discharge rate on a laptop

I've wrote a small piece of code that reads the current battery charge/discharge on my laptop. I followed the example code on this MSDN page. My program updates the information every 100ms (by calling the DeviceIoControl function with IOCTL_BATTERY_QUERY_STATUS as control code) but the read value changes only after 5-10 seconds. For exa...

How do I get estimated battery life on Windows Phone 7

Back in the good ol' Windows Mobile day (CE based) one good get a rough estimate of battery life using the CE CoreDll.dll. Well sometimes at least depending on your hardware. This was exposed via GetSystemPowerStatusEx. WP7 being SilverLight based I'm assuming these sorts of Interop approaches will no longer work. Is there an API that e...

Why Ubuntu eats more power than Windows?

I play full screen video with maximum volume or browse the Web with WiFi. Under Windows 7 my laptop works ~5 hours. Under Kubuntu 10.10 only ~2 hours. I've got Acer Aspire 1810TZ. Battery wear degree 90%. Installed: acpid acpi-support pm-utils upower Not installed: laptop-mode-tools I like Linux, don't want to change it. What to d...

Stopping and starting a Service based on application state

I have a Service which tracks the location of the user. Currently, the Service boots when the application starts and stops when the application terminates. Unfortunately, if users keep the application in the background, the Service never stops and drains battery. I would like the Service to stop when my application is not in the foreg...

Is there way to keep the iPad screen on?

Is there a way to prevent the iPad from sleeping while my app runs? I am making a kiosk app that needs to not auto sleep. ...

Screen ON/OFF receivers on a service and battery life

Hi, I'm new to Android and Java programming so I would like to clear up couple of things. I've wrote a background service that every 10 seconds it verifies something and based on some conditions it executes something or not. This is implemented using a Timer. My understanding until now is that the timer in the service will run even when ...