|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines system event type constants. This class defines all constants related to system event types. Event-related methods are defined in the Event class.
| Field Summary | |
static int |
BATTERY_CHARGE
External power is present and the battery is charging normally. |
static int |
BATTERY_COLD
External power is present but charging has stopped because the battery is too cold. |
static int |
BATTERY_DISCHARGE
External power is not present and the battery is discharging normally. |
static int |
BATTERY_FLAG_CHARGE
|
static int |
BATTERY_FLAG_DC_PLUG
|
static int |
BATTERY_FLAG_FULL
|
static int |
BATTERY_FLAG_POWER
|
static int |
BATTERY_FLAG_SHUTDOWN
|
static int |
BATTERY_FLAG_TEMP
|
static int |
BATTERY_FULL
External power is present but charging has stopped because the battery is full. |
static int |
BATTERY_HOT
External power is present but charging has stopped because the battery is too hot. |
static int |
BATTERY_NOPOWER
The power adapter is plugged in, but it is not supplying power. |
static int |
BITMAP_DECODED
An PhotoRecord's decode bitmap is now ready to be viewed |
static int |
DEVICE_ARROW_DOWN
Device joypad has been rocked down. |
static int |
DEVICE_ARROW_LEFT
Device joypad has been rocked left. |
static int |
DEVICE_ARROW_RIGHT
Device joypad has been rocked right. |
static int |
DEVICE_ARROW_UP
Device joypad has been rocked up. |
static int |
DEVICE_BUTTON_BACK
Device Back button has been pressed. |
static int |
DEVICE_BUTTON_JUMP
Device Jump button has been pressed. |
static int |
DEVICE_BUTTON_MENU
Device menu button has been pressed. |
static int |
DEVICE_META_ALT
The Alt meta key is currently active. |
static int |
DEVICE_META_ALT_LOCKED
The Alt key is currently locked. |
static int |
DEVICE_META_CAPS
The Caps meta key is currently active. |
static int |
DEVICE_META_CAPS_LOCKED
The Caps key is currently locked. |
static int |
DEVICE_META_NONE
There are currently no active Meta keys |
static int |
DEVICE_MULTIPLE_WHEEL
Device wheel has been held up or down. |
static int |
DEVICE_WHEEL
Device wheel has been pushed up or pulled down. |
static int |
DEVICE_WHEEL_BUTTON
Device wheel has been pressed. |
static int |
DEVICE_WHEEL_PAGE_DOWN
Page down event for controls with large scrollable areas. |
static int |
DEVICE_WHEEL_PAGE_UP
Page up event for controls with large scrollable areas. |
static int |
EVENT_ALARM
An alarm has gone off. |
static int |
EVENT_APP_INIT
This is posted to applications immediately after they are launched so that they can perform any initialization work that could not be performed in their constructors. |
static int |
EVENT_APP_NETWORK
A network-related event has occured. |
static int |
EVENT_APP_QUIT
|
static int |
EVENT_APP_RESUME
Application has been resumed. |
static int |
EVENT_APP_SUSPEND
Application has been suspended. |
static int |
EVENT_AUDIO
Some sort of audio event has happened. |
static int |
EVENT_AUTOSYNC_CATEGORYID_CHANGED
This event is sent when there are conflicts between the category ids in the CategoryDB after an auto sync. |
static int |
EVENT_CALL_CUSTOMER_CARE
Invoke the phone to dial customer care number |
static int |
EVENT_CAMERA_STATUS
Camera has been plugged in or out. |
static int |
EVENT_CHECK_PENDING_SYSTEM_UPGRADE_OFFER
|
static int |
EVENT_COPY
|
static int |
EVENT_CUT
Edit Text Events |
static int |
EVENT_DATASTORE_RESTORED
This event is sent whenever an Application's SettingsDB has been successfully restored from the service after a restart. |
static int |
EVENT_DELETE_SELECTION
|
static int |
EVENT_HEADSET_STATUS
Headset has been plugged in or out. |
static int |
EVENT_HINGE_CHANGED
The screen hinge has either opened or closed. |
static int |
EVENT_ICON_GALLERY_UPDATED
The icon gallery has been updated. |
static int |
EVENT_ICON_RECORD_UPDATED
An icon record has been updated. |
static int |
EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED
|
static int |
EVENT_IN_PHONE_STATUS
|
static int |
EVENT_INPUT_METHOD
Notifies an input method handler that the input method has become active (what == 1) or inactive (what == 0). |
static int |
EVENT_INVALID
This event is an invalid event and should not be used. |
static int |
EVENT_IP_ADDRESS
This is posted when you get an IP address and lose it. |
static int |
EVENT_KEY_DOWN
A key on the keyboard has been pressed. |
static int |
EVENT_KEY_HELD
A device key is being held. |
static int |
EVENT_KEY_META
This event is sent when the state of the 3 meta keys changes. |
static int |
EVENT_KEY_REPEAT
A key on the keyboard has been held down. |
static int |
EVENT_KEY_UP
A key on the keyboard has been released. |
static int |
EVENT_LOADER
A system software update has occured. |
static int |
EVENT_MENU_HIDDEN
A menu has just been hidden. |
static int |
EVENT_MENU_SHOWN
A menu has just been shown. |
static int |
EVENT_MESSAGE
Used with MESSAGE_GOTO_URL |
static int |
EVENT_MESSAGE_COMPACTABLE
Used with MESSAGE_GOTO_URL |
static int |
EVENT_MINUTE_TICK
The time has changed. |
static int |
EVENT_MODIFIER_ALT
ALT key is down. |
static int |
EVENT_MODIFIER_BACK_BUTTON
Back Button is down. |
static int |
EVENT_MODIFIER_CAPS
Caps Lock is down. |
static int |
EVENT_MODIFIER_JUMP_BUTTON
Jump Button is down. |
static int |
EVENT_MODIFIER_MENU_BUTTON
Menu Button is down. |
static int |
EVENT_MODIFIER_NONE
No modifiers are in effect. |
static int |
EVENT_MODIFIER_SYM
SYM key is down. |
static int |
EVENT_NETWORK_ACTIVITY
Network activity is occuring. |
static int |
EVENT_NETWORK_ERROR
Posted by native network code to pop up dialog informing user of network problems. |
static int |
EVENT_NETWORK_STATUS
The network status update event Used to keep track of network status for the radio and server connection |
static int |
EVENT_NUM_ACTIVE_VOICE_CALLS_CHANGED
The number of active voice phone calls has changed. |
static int |
EVENT_OFFER_SYSTEM_UPGRADE
Offer System Uprade |
static int |
EVENT_PASTE
|
static int |
EVENT_PERIODIC_PULSE
A periodic pulse sent to the active application. |
static int |
EVENT_PHOTO_GALLERY_UPDATED
The photo galley has been updated. |
static int |
EVENT_PHOTO_RECORD_UPDATED
A photo record has been updated. |
static int |
EVENT_POWER
Battery state has changed. |
static int |
EVENT_POWER_ON
Posted when the power has turned back on after turning off. |
static int |
EVENT_POWER_SWITCH_DOWN
The power switch key was pressed. |
static int |
EVENT_POWER_SWITCH_UP
The power switch key was released. |
static int |
EVENT_PREFERENCES_CHANGED
Preferences have been re-loaded from service. |
static int |
EVENT_RADIO_RESET
This is a bit of a hack to handle the case where the radio resets while in sleep mode. |
static int |
EVENT_ROAM_STATUS
|
static int |
EVENT_SELECT_ALL
|
static int |
EVENT_SETTINGSDB_FLUSHED
This event is sent whenever an Application's SettingsDB has been successfully written to the service after an edit. |
static int |
EVENT_SHORTCUT
A menu shortcut has been used. |
static int |
EVENT_SHOW_EMERGENCY_SCREEN
Show the emergency dialing screen This event is sent to the phone app to display the emergency dialing screen. |
static int |
EVENT_SIGNAL_STRENGTH
The signal strength update event Used to keep track of signal strength level |
static int |
EVENT_SIM_PRESENCE
Physical SIM state has changed. |
static int |
EVENT_SIM_UNLOCKED
Posted by the SystemPhone when the SIM is unlocked |
static int |
EVENT_SYSTEM_LAST
Danger classes use event ID's less than EVENT_SYSTEM_LAST for private event ID's |
static int |
EVENT_SYSTEM_STYLE_CHANGED
|
static int |
EVENT_TIME_CHANGED
System time has been changed. |
static int |
EVENT_TIMER
A timer has fired. |
static int |
EVENT_USB_DATA
USB Debug Data is available and should be routed to the appropriate IPC service... |
static int |
EVENT_USB_STATUS
USB has been connected or disconnected |
static int |
EVENT_VOLUME_CHANGED
System master volume or mute status has been changed. |
static int |
EVENT_WIDGET_DOWN
A device widget has been pressed. |
static int |
EVENT_WIDGET_HELD
A device widget is being held down. |
static int |
EVENT_WIDGET_UP
A device widget has been released. |
static int |
EVENT_WINDOW_PAINT
A window's contents needs to be drawn. |
static int |
INDEX_CHANGED
The current index in the image gallery controller has changed. |
static int |
MESSAGE_GOTO_URL
Application has received a request to go to a URL. |
static int |
RECORD_ADDED
A new record was added to the gallery |
static int |
RECORD_MODIFIED
A record was modified from the gallery |
static int |
RECORD_PENDING
A new record was added to the photo gallery but has not yet been synced |
static int |
RECORD_REMOVED
A record was deleted from the gallery |
static int |
RECORD_UID_CHANGED
The UID for a record has changed. |
static int |
SORT_CHANGED
One of the open PhotoPickers has changed the sort order or type. |
static int |
WHAT_AT_COMMAND_TIMEOUT
|
static int |
WHAT_CAMERA_JACKED_IN
Device camera has been plugged in. |
static int |
WHAT_CAMERA_JACKED_OUT
Device camera has been unplugged. |
static int |
WHAT_CHANNEL_WRITE_TIMEOUT
|
static int |
WHAT_CMUX_BAD_CHECKSUM
Various kinds of network errors. |
static int |
WHAT_HEADSET_JACKED_IN
Device headset has been plugged in. |
static int |
WHAT_HEADSET_JACKED_OUT
Device headset has been unplugged. |
static int |
WHAT_HINGE_CLOSED
Device screen has been swiveled closed. |
static int |
WHAT_HINGE_OPENED
Device screen has been swiveled open. |
static int |
WHAT_NETWORK_IP_DEAD
|
static int |
WHAT_PDP_ACTIVATE_TIMEOUT
|
static int |
WHAT_RADIO_FIRMWARE_FIXED
|
static int |
WHAT_RADIO_IGNORED_LOW_POWER_REQUEST
|
static int |
WHAT_RADIO_RESET
|
static int |
WHAT_RADIO_WONT_WAKE
|
static int |
WHAT_SEQUENCE_PURGED
|
static int |
WHAT_SEQUENCE_STOPPED
Various audio events. |
static int |
WHAT_SIM_ARRIVES
|
static int |
WHAT_SIM_DEPARTS
Physical SIM state has changed. |
static int |
WHAT_SIM_HARDWARE_ERROR
|
static int |
WHAT_SIM_INIT_TIMEOUT
|
static int |
WHAT_SOUND_PURGED
|
static int |
WHAT_SOUND_STOPPED
|
static int |
WHAT_STAR_99_POUND_ERROR
|
static int |
WHAT_SYSTEM_LOADED
A system image has been downloaded and is waiting to be flashed. |
static int |
WHAT_UART_BREAK
|
static int |
WHAT_UART_FRAMING_ERROR
|
static int |
WHAT_UART_OVERRUN
|
| Field Detail |
public static final int EVENT_APP_SUSPEND
public static final int EVENT_APP_RESUME
public static final int EVENT_APP_NETWORK
public static final int EVENT_APP_QUIT
public static final int EVENT_LOADER
public static final int EVENT_IN_PHONE_STATUS
public static final int EVENT_ROAM_STATUS
public static final int EVENT_KEY_UP
public static final int EVENT_KEY_DOWN
public static final int EVENT_WIDGET_UP
public static final int EVENT_WIDGET_DOWN
public static final int EVENT_WIDGET_HELD
public static final int EVENT_KEY_META
public static final int EVENT_POWER_SWITCH_DOWN
public static final int EVENT_POWER_SWITCH_UP
public static final int EVENT_SHORTCUT
Menu,
MenuItempublic static final int EVENT_MINUTE_TICK
public static final int EVENT_POWER
public static final int EVENT_MENU_SHOWN
public static final int EVENT_MENU_HIDDEN
public static final int EVENT_AUDIO
public static final int EVENT_INPUT_METHOD
public static final int EVENT_KEY_HELD
public static final int EVENT_USB_DATA
public static final int EVENT_SETTINGSDB_FLUSHED
public static final int EVENT_DATASTORE_RESTORED
public static final int EVENT_AUTOSYNC_CATEGORYID_CHANGED
public static final int EVENT_SIGNAL_STRENGTH
public static final int EVENT_TIMER
Timerpublic static final int EVENT_ALARM
Alarmpublic static final int EVENT_SHOW_EMERGENCY_SCREEN
public static final int EVENT_PERIODIC_PULSE
public static final int EVENT_TIME_CHANGED
public static final int EVENT_NETWORK_STATUS
public static final int EVENT_WINDOW_PAINT
public static final int EVENT_HINGE_CHANGED
public static final int EVENT_MESSAGE
public static final int EVENT_MESSAGE_COMPACTABLE
public static final int EVENT_PHOTO_GALLERY_UPDATED
public static final int EVENT_USB_STATUS
public static final int EVENT_KEY_REPEAT
public static final int EVENT_HEADSET_STATUS
public static final int EVENT_CAMERA_STATUS
public static final int EVENT_NUM_ACTIVE_VOICE_CALLS_CHANGED
public static final int EVENT_CALL_CUSTOMER_CARE
public static final int EVENT_NETWORK_ACTIVITY
public static final int EVENT_OFFER_SYSTEM_UPGRADE
public static final int EVENT_CHECK_PENDING_SYSTEM_UPGRADE_OFFER
public static final int EVENT_VOLUME_CHANGED
public static final int EVENT_SIM_UNLOCKED
public static final int EVENT_SIM_PRESENCE
public static final int EVENT_NETWORK_ERROR
public static final int EVENT_POWER_ON
public static final int EVENT_IP_ADDRESS
public static final int EVENT_APP_INIT
public static final int EVENT_RADIO_RESET
public static final int EVENT_SYSTEM_STYLE_CHANGED
public static final int EVENT_PREFERENCES_CHANGED
public static final int EVENT_CUT
public static final int EVENT_COPY
public static final int EVENT_PASTE
public static final int EVENT_SELECT_ALL
public static final int EVENT_DELETE_SELECTION
public static final int EVENT_ICON_GALLERY_UPDATED
public static final int EVENT_PHOTO_RECORD_UPDATED
public static final int EVENT_ICON_RECORD_UPDATED
public static final int EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED
public static final int EVENT_INVALID
public static final int EVENT_SYSTEM_LAST
public static final int WHAT_SEQUENCE_STOPPED
public static final int WHAT_SOUND_STOPPED
public static final int WHAT_SEQUENCE_PURGED
public static final int WHAT_SOUND_PURGED
public static final int WHAT_CMUX_BAD_CHECKSUM
public static final int WHAT_RADIO_WONT_WAKE
public static final int WHAT_RADIO_IGNORED_LOW_POWER_REQUEST
public static final int WHAT_UART_OVERRUN
public static final int WHAT_UART_FRAMING_ERROR
public static final int WHAT_UART_BREAK
public static final int WHAT_RADIO_RESET
public static final int WHAT_CHANNEL_WRITE_TIMEOUT
public static final int WHAT_NETWORK_IP_DEAD
public static final int WHAT_STAR_99_POUND_ERROR
public static final int WHAT_AT_COMMAND_TIMEOUT
public static final int WHAT_PDP_ACTIVATE_TIMEOUT
public static final int WHAT_RADIO_FIRMWARE_FIXED
public static final int WHAT_SIM_HARDWARE_ERROR
public static final int WHAT_SIM_INIT_TIMEOUT
public static final int DEVICE_META_NONE
public static final int DEVICE_META_CAPS
public static final int DEVICE_META_ALT
public static final int DEVICE_META_CAPS_LOCKED
public static final int DEVICE_META_ALT_LOCKED
public static final int BATTERY_FLAG_DC_PLUG
public static final int BATTERY_FLAG_POWER
public static final int BATTERY_FLAG_CHARGE
public static final int BATTERY_FLAG_FULL
public static final int BATTERY_FLAG_TEMP
public static final int BATTERY_FLAG_SHUTDOWN
public static final int BATTERY_DISCHARGE
public static final int BATTERY_NOPOWER
public static final int BATTERY_CHARGE
public static final int BATTERY_FULL
public static final int BATTERY_HOT
public static final int BATTERY_COLD
public static final int DEVICE_WHEEL
public static final int DEVICE_WHEEL_BUTTON
public static final int DEVICE_BUTTON_BACK
public static final int DEVICE_BUTTON_MENU
public static final int DEVICE_ARROW_LEFT
public static final int DEVICE_ARROW_UP
public static final int DEVICE_ARROW_RIGHT
public static final int DEVICE_ARROW_DOWN
public static final int DEVICE_BUTTON_JUMP
public static final int DEVICE_MULTIPLE_WHEEL
public static final int DEVICE_WHEEL_PAGE_UP
public static final int DEVICE_WHEEL_PAGE_DOWN
public static final int WHAT_HEADSET_JACKED_IN
public static final int WHAT_HEADSET_JACKED_OUT
public static final int WHAT_CAMERA_JACKED_IN
public static final int WHAT_CAMERA_JACKED_OUT
public static final int WHAT_HINGE_OPENED
public static final int WHAT_HINGE_CLOSED
public static final int WHAT_SYSTEM_LOADED
public static final int MESSAGE_GOTO_URL
public static final int EVENT_MODIFIER_NONE
if ((modifiers & Event.EVENT_MODIFIER_NONE) ==
EventType.EVENT_MODIFIER_NONE)
// No modifiers are in effect.
public static final int EVENT_MODIFIER_CAPS
if ((modifiers & Event.EVENT_MODIFIER_CAPS) ==
EventType.EVENT_MODIFIER_CAPS)
// CAPS key is down.
public static final int EVENT_MODIFIER_ALT
if ((modifiers & Event.EVENT_MODIFIER_ALT) ==
EventType.EVENT_MODIFIER_ALT)
// ALT key is down.
public static final int EVENT_MODIFIER_SYM
if ((modifiers & Event.EVENT_MODIFIER_SYM) ==
EventType.EVENT_MODIFIER_SYM)
// SYM key is down.
public static final int EVENT_MODIFIER_BACK_BUTTON
if (event.ModifierIsActive(Event.EVENT_MODIFIER_BACK_BUTTON)
// Back Button is down.
public static final int EVENT_MODIFIER_MENU_BUTTON
if (event.ModifierIsActive(Event.EVENT_MODIFIER_MENU_BUTTON)
// Menu Button is down.
public static final int EVENT_MODIFIER_JUMP_BUTTON
if (event.ModifierIsActive(Event.EVENT_MODIFIER_JUMP_BUTTON)
// Jump Button is down.
public static final int RECORD_ADDED
public static final int RECORD_REMOVED
public static final int RECORD_MODIFIED
public static final int RECORD_UID_CHANGED
public static final int SORT_CHANGED
public static final int BITMAP_DECODED
public static final int RECORD_PENDING
public static final int INDEX_CHANGED
public static final int WHAT_SIM_DEPARTS
public static final int WHAT_SIM_ARRIVES
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||