Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 9
Registered: ‎05-15-2012
My Device: 9700, 9900
My Carrier: Vodafone, T-Mobile

Proximity Sensor prevents Security Timer reset

Hi folks,


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,