|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.system.Device
Various utility methods affecting fundamental operation of the Device.
| Field Summary | ||
|
static long |
DEFAULT_DEVICE_TIME
The default device time to set, when the device has just been powered up, and the OS has no valid date set. |
| Method Summary | ||
|
static boolean |
requestPowerOff(boolean allowAutoOn)
Requests that the Device power down. |
|
static boolean |
requestStorageMode()
Requests that the Device go into storage mode. |
|
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 |
| Field Detail |
public static final long DEFAULT_DEVICE_TIME
| Method Detail |
public static boolean requestPowerOff(boolean allowAutoOn)
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.
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)).public static boolean requestStorageMode()
Currently, this method always returns true.
public static boolean setDateTime(long dateTimeMillis)
The date cannot be earlier than January 1, 2002.
You can retrieve the current date and time
by invoking System.currentTimeMillis().
dateTimeMillis - Ticks of desired date since origin time
(i.e. midnight UTC, January 1st, 1970).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 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.