I am trying to keep a device from sleeping if the user is actively moving it.
I have a listener attached to the accelerometer sensor....which I have working
great.

I thought I could just call power manager, user activity:
  pm.userActivity(SystemClock.currentThreadTimeMillis(), false);

But the device still sleeps.

I have tried all combinations of parameters.

What am I missing?

grabbing and releasing wake locks has become problematic.  If I can
just strobe a timer
someplace on sleep...it would be better.

-Mike

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to