views:

83

answers:

1

Hi there, i'm an IT Student and the language i'm learning is C#, it's quite similar to Java so I gave Android programming 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?

+1  A: 

This article Handling Screen OFF and Screen ON Intents has code snippets for handling ACTION_SCREEN_OFF and ACTION_SCREEN_ON intents.

Shaji
Would I be able to "perform actions" using only the first 2 code snippets?
Xylez