I'm interesting in determine what caused a screen to turn on inside my app. I already know and utilize the ACTION_SCREEN_ON and USER_PRESENT broadcasts, but i can't seem to figure out how to determine why the screen turned on.
Was it because the user hit the power key? Perhaps a phone call came in, or a new text message arrived. Or perhaps some random app requested the screen to turn on.
I'm not interested in controlling when the screen turns on or off, just determining the reason behind it, so my app can respond accordingly.
Thanks in advance for your help