How to find locked state duration of the screen in android? -


please me find time duration of screen state [ (i.e.,) lock unlock duration]. there pre-defined method available achieve this?

thanks in advance..

i don't know there pre-defined method getting time elapsed while locked, listen broadcast intents fired when device locked/unlocked. see question intents register for: android launch intent when lockscreen should appear

in broadcast receivers, can keep track of time elapsed while locked.


Comments