On Mon, Oct 10, 2011 at 10:22 AM, Pinheiro <rui.c.pinhe...@gmail.com> wrote: >> specifically told Android not to turn the screen on, by using >> PARTIAL_WAKE_LOCK. > > I want it to turn off automatically until a message is received or > the user touches something. > As I said, reading the docs PowerManager.ACQUIRE_CAUSES_WAKEUP and a > new acquire() *should* solve the problem but doesn't.
Not if you are using PARTIAL_WAKE_LOCK. You need a FULL_WAKE_LOCK. As the documentation states for ACQUIRE_CAUSES_WAKEUP: "These flags have no effect when combined with a PARTIAL_WAKE_LOCK." -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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