Signals for Lock or Unlock
-
Hi and welcome to devnet,
AFAIK, no.
What would be your use case ?
-
Actually I am using timers to produce audio beep pattern .What happens is when my device gets locked or is forcefully locked , then CPU goes to sleep and the application does not behave properly giving me the abrupt beep pattern. So I want to Know whether I get any signal when my android mobile device gets locked or not ?
-
You can ask on the necessitas google-group about that, but I think it's not something that is available.
However if you application needs to continue working when the screen is locked you probably need to give it permission to keep the device awake.
-
It's done in the AndroidManifest.xml file. You can edit it by double clicking on it
-
There's no code involved, you need to edit that file