SHOW Signed

net.rim.device.api.system
Class Device

java.lang.Object
  |
  +--net.rim.device.api.system.Device

public final class Device
extends Object

Various utility methods affecting fundamental operation of the Device.

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
JDE 3.6.0

Method Summary
 Category: Signed static boolean requestPowerOff(boolean allowAutoOn)
          Requests that the Device power down.
 Category: Signed static boolean requestStorageMode()
          Requests that the Device go into storage mode.
 Category: Signed static boolean setDateTime(long dateTimeMillis)
          Sets the Device's current date (and time).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

requestPowerOff

public static boolean requestPowerOff(boolean allowAutoOn)
Requests that the Device power down.

This method may return false if power down is not possible as the serial port is owned by an application. This prevents events such as auto shut-off from shutting the handheld down while it is synchronizing with the desktop.

Parameters:
allowAutoOn - If true, the device can be turned back on automatically by a scheduled application (see ApplicationManager.scheduleApplication(net.rim.device.api.system.ApplicationDescriptor, long, boolean)).
Returns:
True if the power down sequence was started; otherwise false.
Since:
JDE 4.0.2
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

requestStorageMode

public static boolean requestStorageMode()
Requests that the Device go into storage mode.

Currently, this method always returns true.

Returns:
True.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setDateTime

public static boolean setDateTime(long dateTimeMillis)
Sets the Device's current date (and time).

You can retrieve the current date and time by invoking System.currentTimeMillis().

Parameters:
dateTimeMillis - Ticks of desired date since origin time (i.e. midnight UTC, January 1st, 1970).
Returns:
True if the data and time was set successfully; otherwise, false.
Since:
JDE 4.0.2
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.