[android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread William Kelley
I am developing a simple GPS logger that runs as a service, getting fixes in short intervals. As I've read documentation and posts in this forum, I realize I need a WakeLock to keep the service running and logging points. Right now, without a WakeLock, my service runs fine for many hours, even

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread Dianne Hackborn
You need to hold a wake lock for any duration when you need to make sure the CPU doesn't go into deep sleep. It doesn't matter what other applications are doing, for your code to be correct you need to hold the wake lock when your code relies on the CPU being kept running, so the platform knows ab

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread William Kelley
My question wasn't about battery life, but I'll address it anyway. Users who install apps that use long running services are usually fully aware that it will affect battery life. Certainly anyone who wants to record a GPS track for a few hours with very fine resolution (points every 5 seconds s

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread Dianne Hackborn
On Sun, May 13, 2012 at 8:05 PM, William Kelley wrote: > My question wasn't about battery life, but I'll address it anyway. Users > who install apps that use long running services are usually fully aware > that it will affect battery life. There is basically no relationship between "long running