[android-developers] PARTIAL_WAKE_LOCK and Android 2.3.x

2012-07-24 Thread Ralph Bergmann | the4thFloor.eu
Hello, what is the magic with wake locks? I try to prevent that the phone is going to sleep. Here my code (snippet): public class GPSListenerHandler extends Handler implements GpsStatus.Listener, LocationListener { private WakeLock wakeLock; protected boolean

Re: [android-developers] PARTIAL_WAKE_LOCK and Android 2.3.x

2012-07-24 Thread Mark Murphy
FWIW, here is a project where I have implemented a Service that can do a location check inside of a WakeLock, stopping the service once we get a fix or a timeout: https://github.com/commonsguy/cwac-locpoll On Tue, Jul 24, 2012 at 3:00 AM, Ralph Bergmann | the4thFloor.eu ra...@the4thfloor.eu