05-15-2012 04:30 AM
I'm developing an application using proximity sensor in OS7. It also uses Backlight.setEnabled(true) to reset the security timer after 80% of the DeviceInfo.getLockTimeout() is elapsed. The permission for the security timer is set to ALLOW.
The problem is, if the proximity sensor has detected my ear and has disabled the display, Backlight.setEnabled(true) has no function and seems to not reset the security timer any longer.
Is there a chance to reset security timer while proximity sensor is active?. Key injection is not an option for me.
Thanks in advance,