Re: [android-developers] Re: Service Being paused on screen off.

2012-03-02 Thread Chris Conry
The issue is that the accelerometer sensor is turning off. So the listener will not detect any changes while it is off. Your CPU isnt sleeping while the screen is off, maybe slowing down to save power, but it will not completely shut off. So a service running should still be running. The best work

Re: [android-developers] Re: Service Being paused on screen off.

2011-07-20 Thread Chris Conry
hat change. :p >> >> Also even as of 2.3, I wouldn't be surprised if some device's drivers are >> still turning off the sensor hardware as part of their power management when >> the screen goes off. >> >> On Wed, Jul 20, 2011 at 8:53 AM, Chris Conry wrot

Re: [android-developers] Re: Service Being paused on screen off.

2011-07-20 Thread Chris Conry
in Eclipse to examine > LogCat and look at the stack trace associated with your runtime error. > My guess is that you do not hold the WAKE_LOCK permission. > > On Wed, Jul 20, 2011 at 11:21 AM, Chris Conry wrote: > > Thanks for the replys, > > Looking into it the partial wake

Re: [android-developers] Re: Service Being paused on screen off.

2011-07-20 Thread Chris Conry
u need to use AlarmManager to get called when the phone is in >> standby. >> Even a handler postDelayed wont work, as that is also wake time. >> >> On 19 Jul., 23:20, Chris Conry wrote: >> > I'm trying to build an app that logs sensor data(using a service), and >

[android-developers] Service Being paused on screen off.

2011-07-19 Thread Chris Conry
I'm trying to build an app that logs sensor data(using a service), and stores it into an SQLite database. My problem is that it stops logging when the screen is off. It works perfectly fine when the screen is on, but when i turn the screen off the data doesn't start logging until I turn the screen