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 around is on a kernel level, not really an app level.

On Thu, Jan 19, 2012 at 3:38 PM, Kristopher Micinski <[email protected]
> wrote:

> I didn't see the original thread you're responding to, so what's your
> question?
>
> As in you want your service to stop using resources when the screen is
> off, or the opposite.  In one of those situations you can hold a wake
> lock to keep the cpu on, but not the screen, I believe.
>
> kris
>
> On Thu, Jan 19, 2012 at 11:18 AM, crennie <[email protected]> wrote:
> > I found the same thing. The accelerometer still fires when the screen is
> off
> > but connected to USB and logcat. There might be a work around here
> > somewhere. I'm just not savy enough to figure it out. Andyone else care
> to
> > hack this?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to