Quote:
Originally Posted by atsikouras
In pseudo-code:
//on program start
if ( ITPolicy.getSetting("Allow Resetting of Idle Timer") == false ) {
errorMessage.send( "Your IT Policy is too restrictive to run this application.")
}
|
I have a possible answer for your specific example case here, though not the general case you inquired about in the OP.
from:
www DOTTO blackberry DOTTO com/developers/docs/4.3.0api/net/rim/device/api/system/DeviceInfo.html
BlackBerry JDE 4.3.0 API Specification: Class DeviceInfo
Method Detail
canResetIdleTime
public static boolean canResetIdleTime()
Checks whether or not the calling application can reset the device's idle timer.
All of the following conditions must be satisfied in order for an application to be able to reset the device's idle timer:
* IT Policy ALLOW_RESET_IDLE_TIMER must be true. The default is false for BES users, true for BIS.
* All modules on the call stack must be authorized by the RIM Runtime (RRT) key (RRT_SIGNER_ID).
* All modules on the call stack must pass the PERMISSION_IDLE_TIMER application control check.
Returns: true if the calling application can reset the device's idle timer; false otherwise.
Since: JDE 4.3.0