Use intent ACTION_SCREEN_OFF.
Broadcast Action: Sent after the screen turns off. Constant Value: "android.intent.action.SCREEN_OFF" -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 2, 11:14 pm, Tony Zhou <zhouz...@gmail.com> wrote: > Hi, > > Is there any API I can detect the event that the screen is off after > time out? Or is there any API I can query the backlight status? > > Thanks, --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---