开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜