Forcibly turning the screen on when you're not sure that the user is looking is a sure way to drain the battery in a few hours. You should probably avoid that.
JBQ On Sun, Nov 23, 2008 at 8:52 AM, Adam K <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is there a way to detect if the screen is off? I want to be able to > show a dialog if the screen is off (using a wakelock) but if the > screen is on I want to show a notification (so as not to interfere > with what the user is doing). > > Thanks, > > Adam > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

