Signals for Lock or Unlock
-
Do we get any signal while locking or unlocking of the android mobile device in Qt 5.3 ?
-
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.
-
yes , that is why I need to know how can I achieve this any how . How can I give permission to keep the device awake ? I am working on Qt5.3.1 .
-
It's done in the AndroidManifest.xml file. You can edit it by double clicking on it
-
Can you Please give me the code ?
-
There's no code involved, you need to edit that file