A partial wakelock doesn't help because, as I have already explained, as soon as the display goes off, the accelerometers go off. I can keep the CPU awake, and my program continues to run when the display is off. However, as soon as the display goes off, the accelerometers go silent.
So this is why I think that the solution lies in one of the lower layers, I'm just not sure where to start digging. Cheers, Jordan On Mar 15, 12:35 pm, Marco Nelissen <marc...@android.com> wrote: > That's why you'd use a *partial* wakelock. > > On Sun, Mar 15, 2009 at 6:57 AM, Jordan Frank <jordan.w.fr...@gmail.com> > wrote: > > > My fault for not explaining myself better. I want to still be able to > > collect accelerometer data while the display is off. I'm well aware of > > the fact that I can keep the display on, but if I want to, for > > instance, create a pedometer application that counts footsteps while > > in the user's pocket, then the last thing I want is to keep the > > display to be on the whole time. > > > Cheers, > > Jordan > > > On Mar 14, 3:20 pm, Stoyan Damov <stoyan.da...@gmail.com> wrote: > >>http://developer.android.com/reference/android/os/PowerManager.WakeLo... > > >> On Sat, Mar 14, 2009 at 8:23 PM, Jordan Frank <jordan.w.fr...@gmail.com> > >> wrote: > > >> > Hi, > > >> > Although I haven't received confirmation from anyone at Google, I can > >> > confidently state that when the power to the display goes off, one can > >> > no longer obtain data from the accelerometers. I can easily think of a > >> > number of examples of where one would like to continue collecting > >> > accelerometer data even when the display is of. > > >> > Supposing that I wanted to "fix" this, can anyone suggest where should > >> > I start looking? Would this be in the SDK, the kernel, or in some > >> > proprietary firmware that I can't touch? > > >> > Thanks, > >> > Jordan Frank > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---