On Dec 15, 10:07 pm, Tim <[email protected]> wrote: > I also have this problem and there doesn't seem to be a way around it. > And no, I'm not 'doing it wrong'. Polling really would be best in my > case - my app reacts to received SMS's and needs to do different > things depending on whether the screen is on or not.
Aha! I found a (possible) solution. I haven't tried it yet, but there is an undocumented hidden public method: boolean PowerManager.isScreenOn() -- 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

