Hello!
I have made a mode,which sets the screen off with the hardware-lib and activate a keylock. With one hardware-button, the screen gets on and the keylock will be disabled again. On every device I have tested it, it is possible to set the screen off. But on some devices (for example HTC Touch Diamond), it is not possible to turn the screen on with the hardware-lib. So it is necessary to press the powerbutton (on/off) of the device. After that, the screen turns on, but the keylock is always activated. Is there a way to check if the screen is on or perhaps if the powerbutton has been pressed?
Thanks for answers....
I have made a mode,which sets the screen off with the hardware-lib and activate a keylock. With one hardware-button, the screen gets on and the keylock will be disabled again. On every device I have tested it, it is possible to set the screen off. But on some devices (for example HTC Touch Diamond), it is not possible to turn the screen on with the hardware-lib. So it is necessary to press the powerbutton (on/off) of the device. After that, the screen turns on, but the keylock is always activated. Is there a way to check if the screen is on or perhaps if the powerbutton has been pressed?
Thanks for answers....