Determine why android screen was turned on -


i'm interesting in determine caused screen turn on inside app. know , utilize action_screen_on , user_present broadcasts, can't seem figure out how determine why screen turned on.

was because user hit power key? perhaps phone call came in, or new text message arrived. or perhaps random app requested screen turn on.

i'm not interested in controlling when screen turns on or off, determining reason behind it, app can respond accordingly.

thanks in advance help


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -