Android ScreenLock event?
i'm an IT Student and the language i'm learning is C#, it's quite similar to Java so I gave Android p开发者_运维百科rogramming a shot. But I have a question: Is there and event that's fired when the screen is (un)locked? And if possible, can someone show me a code snippet showing an action done when the screen is (un)locked?
This article Handling Screen OFF and Screen ON Intents has code snippets for handling ACTION_SCREEN_OFF and ACTION_SCREEN_ON intents.
精彩评论