开发者

Android ScreenLock event?

开发者 https://www.devze.com 2023-01-11 07:01 出处:网络
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:

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

精彩评论

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