Distinguish between screen timeout and power-button-press?
- by Nick
Hi,
my app does something when the screen goes black, but I want it to only carry out that task if the screen was turned off "by itself", through a screen timeout - NOT when the user presses the power-button. Is there any way to distinguish between those two events?
ACTION_SCREEN_OFF obviously fires in both cases, and I haven't found any other…