On an AlarmManager intent, I am trying to switch on the device screen. And I am relying on the system to switch off the screen after some duration of no user activity. I use: PowerManager.XXX| PowerManager.ON_AFTER_RELEASE | PowerManager.ACQUIRE_CAUSES_WAKEUP
flags. PowerManager.XXX is either *SCREEN_DIM_WAKE_LOCK*<http://developer.android.com/reference/android/os/PowerManager.html#SCREEN_DIM_WAKE_LOCK> or *FULL_WAKE_LOCK*<http://developer.android.com/reference/android/os/PowerManager.html#FULL_WAKE_LOCK> . Screen does indeed come on in the *FULL_WAKE_LOCK*<http://developer.android.com/reference/android/os/PowerManager.html#FULL_WAKE_LOCK>. But each time, and on different devices, the duration it stays on is very inconsistent. Example, sometimes it's 1 second, whereas sometimes it's 25 seconds. Why is this? Is there anyway I can make it consistent? If I use *SCREEN_DIM_WAKE_LOCK*<http://developer.android.com/reference/android/os/PowerManager.html#SCREEN_DIM_WAKE_LOCK> flag, then on each device the behaviour is different. Like on some devices, the screen never comes on, but on some devices, it comes on and is dimmed. ** ** -- 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

