Welcome!

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

Prevent the Lock screen from interrupting your application

by Retired ‎02-16-2010 01:44 PM - edited ‎09-16-2010 02:28 PM (5,450 Views)

Summary

 

This article applies to BlackBerry® Device Software 4.3.

 


Description

 

If a BlackBerry device user has set a password on the BlackBerry device, the Lock screen is shown after the security timeout has been reached. A BlackBerry device user can manually adjust the Lock screen timeout interval by going to Options > Security Options > General Settings, and changing the Security Timeout value.

 

BlackBerry Device Software 4.2.1 has changed the behavior of how and when the Lock screen is displayed on a BlackBerry device when a third-party application is in use. The following table lists the Lock screen behaviour for third-party applications using the Backlight.enable and EventInjector methods:

 


BlackBerry Device Software version  Backlight.enable method  EventInjector method 
Prior to 4.1 Delays Lock screen Delays Lock screen
4.2.0 Does not delay Lock screen Delays Lock screen
4.2.1 and later Delays Lock screen* Delays Lock screen*

 

Applications should only prevent the Lock screen from being shown when it is clear that the BlackBerry device user will be viewing the application and not interacting with it. A BlackBerry device user pressing keys and/or using the trackwheel or trackball will automatically prevent the Lock screen from being shown.

 

If the application is not in use or is no longer in the foreground, the Lock screen should be allowed to engage; failing to do so presents a security risk to the BlackBerry device user. See this article for information on how to detect when an application arrives in the foreground or is sent to the background.

 

* In BlackBerry Device Software 4.3, for the Backlight.enable method or the EventInjector method to prevent the Lock screen from being shown, the following criteria must be met:

  1. For BlackBerry device users that have an account on the BlackBerry® Enterprise Server, an IT policy called SecurityPolicy.ALLOW_RESET_IDLE_TIMER must be set to true. By default this IT policy is set to false. No action is required for BlackBerry device users that have a BlackBerry® Internet Service account and who are not on a BlackBerry Enterprise Server.
  2. For both BlackBerry Enterprise Server and BlackBerry Internet Service users, the Security Timer Reset application control must be set to Allow. By default, this control is set to Deny. BlackBerry device users may change this setting on their BlackBerry devices using one of the following methods:
    • Go to Options > Advanced Options > Applications, and select Edit Permissions from the menu.
    • Go to Options > Security Options > Application Permissions , and select Edit Permissions from the menu.

Regardless of whether the above criteria have been met, the Backlight.enable and EventInjector methods will continue to perform their primary function of enabling the backlight and injecting keyboard and trackball/trackwheel events. No exceptions will be thrown if these criteria are not met; the BlackBerry device will simply display the Lock screen after the security timeout value has been reached

Contributors
Users Online
Currently online: 10 members 506 guests
Please welcome our newest community members: