danger.app
Interface EventType

All Known Subinterfaces:
SystemEventIds
All Known Implementing Classes:
Event

public interface EventType

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

EVENT_APP_SUSPEND

public static final int EVENT_APP_SUSPEND
Application has been suspended. This event is sent when an application has been suspended. This occurs when the user returns to the Chooser.

EVENT_APP_RESUME

public static final int EVENT_APP_RESUME
Application has been resumed. This event is sent when an application has been resumed. This occurs when the user selects the application in the Chooser.

EVENT_APP_NETWORK

public static final int EVENT_APP_NETWORK
A network-related event has occured.

EVENT_APP_QUIT

public static final int EVENT_APP_QUIT

EVENT_LOADER

public static final int EVENT_LOADER
A system software update has occured. Used internally. Sent when a new version of the system software has been received.

EVENT_IN_PHONE_STATUS

public static final int EVENT_IN_PHONE_STATUS

EVENT_ROAM_STATUS

public static final int EVENT_ROAM_STATUS

EVENT_KEY_UP

public static final int EVENT_KEY_UP
A key on the keyboard has been released. This event is sent when a key on the keyboard has been released.

EVENT_KEY_DOWN

public static final int EVENT_KEY_DOWN
A key on the keyboard has been pressed. This event is sent when a key on the keyboard has been pressed.

EVENT_WIDGET_UP

public static final int EVENT_WIDGET_UP
A device widget has been released. This event is sent when a device widget such as the wheel or back button has been released.

EVENT_WIDGET_DOWN

public static final int EVENT_WIDGET_DOWN
A device widget has been pressed. This event is sent when a device widget such as the wheel or back button has been pressed.

EVENT_WIDGET_HELD

public static final int EVENT_WIDGET_HELD
A device widget is being held down. This event is sent when a device widget such as the wheel or back button has been pressed and is being held.

EVENT_KEY_META

public static final int EVENT_KEY_META
This event is sent when the state of the 3 meta keys changes. The state of the meta keys changes when one of the following happens: 1. A meta key is pressed once thus entering the one-shot state. 2. A meta key is pressed again thus locking it as active until its pressed again. 3. All Meta keys are deactivated and keyboard is back to its initial state. The what field of event will be one of the following:

EVENT_POWER_SWITCH_DOWN

public static final int EVENT_POWER_SWITCH_DOWN
The power switch key was pressed.

EVENT_POWER_SWITCH_UP

public static final int EVENT_POWER_SWITCH_UP
The power switch key was released.

EVENT_SHORTCUT

public static final int EVENT_SHORTCUT
A menu shortcut has been used. Used to handle menu shortcuts. Applications should not use this, and instead just receive the shortcut event type they registered when they built their menu.
See Also:
Menu, MenuItem

EVENT_MINUTE_TICK

public static final int EVENT_MINUTE_TICK
The time has changed. This will be posted once a minute in a running system. There may be hiccups when the system is sleeping, i.e. the time between adjacent events may be more or less than a minute. Currently sent to all applications but for performance reasons use of it should be avoided.

EVENT_POWER

public static final int EVENT_POWER
Battery state has changed. Used to keep track of battery level and charging status.

EVENT_MENU_SHOWN

public static final int EVENT_MENU_SHOWN
A menu has just been shown. EVENT_MENU_SHOWN happens for all menu types: action menus popup menus and subclasses.

EVENT_MENU_HIDDEN

public static final int EVENT_MENU_HIDDEN
A menu has just been hidden. EVENT_MENU_HIDDEN happens for all menu types: action menus popup menus and subclasses.

EVENT_AUDIO

public static final int EVENT_AUDIO
Some sort of audio event has happened. When something happens to an audio object at the native level, this event is sent up with the specifics.

EVENT_INPUT_METHOD

public static final int EVENT_INPUT_METHOD
Notifies an input method handler that the input method has become active (what == 1) or inactive (what == 0).

EVENT_KEY_HELD

public static final int EVENT_KEY_HELD
A device key is being held. This event is sent when a key is held for a period of time. EVENT_KEY_HELD events do not interfere with other key events at all. That means your application will still receive regular key events.

EVENT_USB_DATA

public static final int EVENT_USB_DATA
USB Debug Data is available and should be routed to the appropriate IPC service...

EVENT_SETTINGSDB_FLUSHED

public static final int EVENT_SETTINGSDB_FLUSHED
This event is sent whenever an Application's SettingsDB has been successfully written to the service after an edit. The argument field of the Event object will hold the String name of the DB.

EVENT_DATASTORE_RESTORED

public static final int EVENT_DATASTORE_RESTORED
This event is sent whenever an Application's SettingsDB has been successfully restored from the service after a restart. The argument field of the Event object will hold the String name of the DB.

EVENT_AUTOSYNC_CATEGORYID_CHANGED

public static final int EVENT_AUTOSYNC_CATEGORYID_CHANGED
This event is sent when there are conflicts between the category ids in the CategoryDB after an auto sync. The GategoryDB resolved the category id conflict, but the user of the category id needs to be notified of the change.

EVENT_SIGNAL_STRENGTH

public static final int EVENT_SIGNAL_STRENGTH
The signal strength update event Used to keep track of signal strength level

EVENT_TIMER

public static final int EVENT_TIMER
A timer has fired. This event is sent when a timer has fired.
See Also:
Timer

EVENT_ALARM

public static final int EVENT_ALARM
An alarm has gone off. This event is sent when an alarm has gone off.
See Also:
Alarm

EVENT_SHOW_EMERGENCY_SCREEN

public static final int EVENT_SHOW_EMERGENCY_SCREEN
Show the emergency dialing screen This event is sent to the phone app to display the emergency dialing screen.

EVENT_PERIODIC_PULSE

public static final int EVENT_PERIODIC_PULSE
A periodic pulse sent to the active application. The pulse is sent every 500 milliseconds.

EVENT_TIME_CHANGED

public static final int EVENT_TIME_CHANGED
System time has been changed. Used by system to indicate that the device's local time has changed whether by the user or service setting the time or time zone.

EVENT_NETWORK_STATUS

public static final int EVENT_NETWORK_STATUS
The network status update event Used to keep track of network status for the radio and server connection

EVENT_WINDOW_PAINT

public static final int EVENT_WINDOW_PAINT
A window's contents needs to be drawn. This event is sent whenever the window needs to redraw its contents.

EVENT_HINGE_CHANGED

public static final int EVENT_HINGE_CHANGED
The screen hinge has either opened or closed. This event is sent whenever the screen hinge either opens or closes. The Event.what field of the event record will contain either WHAT_HINGE_OPENED or WHAT_HINGE_CLOSED

EVENT_MESSAGE

public static final int EVENT_MESSAGE
Used with MESSAGE_GOTO_URL

EVENT_MESSAGE_COMPACTABLE

public static final int EVENT_MESSAGE_COMPACTABLE
Used with MESSAGE_GOTO_URL

EVENT_PHOTO_GALLERY_UPDATED

public static final int EVENT_PHOTO_GALLERY_UPDATED
The photo galley has been updated. Either a record has been added, deleted or modified. Apps that register for photo gallery notification will get this as the event type

EVENT_USB_STATUS

public static final int EVENT_USB_STATUS
USB has been connected or disconnected

EVENT_KEY_REPEAT

public static final int EVENT_KEY_REPEAT
A key on the keyboard has been held down. This event is sent when a key on the keyboard has been pressed and held down. This even will be passed to Listeners between the initial EVENT_KEY_DOWN and final EVENT_KEY_UP events.

EVENT_HEADSET_STATUS

public static final int EVENT_HEADSET_STATUS
Headset has been plugged in or out.

EVENT_CAMERA_STATUS

public static final int EVENT_CAMERA_STATUS
Camera has been plugged in or out.

EVENT_NUM_ACTIVE_VOICE_CALLS_CHANGED

public static final int EVENT_NUM_ACTIVE_VOICE_CALLS_CHANGED
The number of active voice phone calls has changed. The 'what' parameter of the event will contain the number of currently active voice calls.

EVENT_CALL_CUSTOMER_CARE

public static final int EVENT_CALL_CUSTOMER_CARE
Invoke the phone to dial customer care number

EVENT_NETWORK_ACTIVITY

public static final int EVENT_NETWORK_ACTIVITY
Network activity is occuring.

EVENT_OFFER_SYSTEM_UPGRADE

public static final int EVENT_OFFER_SYSTEM_UPGRADE
Offer System Uprade

EVENT_CHECK_PENDING_SYSTEM_UPGRADE_OFFER

public static final int EVENT_CHECK_PENDING_SYSTEM_UPGRADE_OFFER

EVENT_VOLUME_CHANGED

public static final int EVENT_VOLUME_CHANGED
System master volume or mute status has been changed. Used by system to indicate that the master volume has been changed.

EVENT_SIM_UNLOCKED

public static final int EVENT_SIM_UNLOCKED
Posted by the SystemPhone when the SIM is unlocked

EVENT_SIM_PRESENCE

public static final int EVENT_SIM_PRESENCE
Physical SIM state has changed. Posted by OS when SIM arrives or departs.

EVENT_NETWORK_ERROR

public static final int EVENT_NETWORK_ERROR
Posted by native network code to pop up dialog informing user of network problems.

EVENT_POWER_ON

public static final int EVENT_POWER_ON
Posted when the power has turned back on after turning off. Note that there is no warning when the power actually turns off, but the power on/off/on transition should be transparent to apps anyway.

EVENT_IP_ADDRESS

public static final int EVENT_IP_ADDRESS
This is posted when you get an IP address and lose it. The data field will be 1 if the network is up, 0 if it is down.

EVENT_APP_INIT

public static final 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.

EVENT_RADIO_RESET

public static final int EVENT_RADIO_RESET
This is a bit of a hack to handle the case where the radio resets while in sleep mode. Delay going back into sleep for a spell while the low level code reinitializes the radio.

EVENT_SYSTEM_STYLE_CHANGED

public static final int EVENT_SYSTEM_STYLE_CHANGED

EVENT_PREFERENCES_CHANGED

public static final int EVENT_PREFERENCES_CHANGED
Preferences have been re-loaded from service. Used by system to indicate that the master volume has been changed.

EVENT_CUT

public static final int EVENT_CUT
Edit Text Events

EVENT_COPY

public static final int EVENT_COPY

EVENT_PASTE

public static final int EVENT_PASTE

EVENT_SELECT_ALL

public static final int EVENT_SELECT_ALL

EVENT_DELETE_SELECTION

public static final int EVENT_DELETE_SELECTION

EVENT_ICON_GALLERY_UPDATED

public static final int EVENT_ICON_GALLERY_UPDATED
The icon gallery has been updated. Either a record has been added, deleted or modified. Apps that register for icon gallery notification will get this as the event type

EVENT_PHOTO_RECORD_UPDATED

public static final int EVENT_PHOTO_RECORD_UPDATED
A photo record has been updated. Any number of fields in the record could have been changed.

EVENT_ICON_RECORD_UPDATED

public static final int EVENT_ICON_RECORD_UPDATED
An icon record has been updated. Any number of fields in the record could have been changed.

EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED

public static final int EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED

EVENT_INVALID

public static final int EVENT_INVALID
This event is an invalid event and should not be used.

EVENT_SYSTEM_LAST

public static final int EVENT_SYSTEM_LAST
Danger classes use event ID's less than EVENT_SYSTEM_LAST for private event ID's

WHAT_SEQUENCE_STOPPED

public static final int WHAT_SEQUENCE_STOPPED
Various audio events.

WHAT_SOUND_STOPPED

public static final int WHAT_SOUND_STOPPED

WHAT_SEQUENCE_PURGED

public static final int WHAT_SEQUENCE_PURGED

WHAT_SOUND_PURGED

public static final int WHAT_SOUND_PURGED

WHAT_CMUX_BAD_CHECKSUM

public static final int WHAT_CMUX_BAD_CHECKSUM
Various kinds of network errors.

WHAT_RADIO_WONT_WAKE

public static final int WHAT_RADIO_WONT_WAKE

WHAT_RADIO_IGNORED_LOW_POWER_REQUEST

public static final int WHAT_RADIO_IGNORED_LOW_POWER_REQUEST

WHAT_UART_OVERRUN

public static final int WHAT_UART_OVERRUN

WHAT_UART_FRAMING_ERROR

public static final int WHAT_UART_FRAMING_ERROR

WHAT_UART_BREAK

public static final int WHAT_UART_BREAK

WHAT_RADIO_RESET

public static final int WHAT_RADIO_RESET

WHAT_CHANNEL_WRITE_TIMEOUT

public static final int WHAT_CHANNEL_WRITE_TIMEOUT

WHAT_NETWORK_IP_DEAD

public static final int WHAT_NETWORK_IP_DEAD

WHAT_STAR_99_POUND_ERROR

public static final int WHAT_STAR_99_POUND_ERROR

WHAT_AT_COMMAND_TIMEOUT

public static final int WHAT_AT_COMMAND_TIMEOUT

WHAT_PDP_ACTIVATE_TIMEOUT

public static final int WHAT_PDP_ACTIVATE_TIMEOUT

WHAT_RADIO_FIRMWARE_FIXED

public static final int WHAT_RADIO_FIRMWARE_FIXED

WHAT_SIM_HARDWARE_ERROR

public static final int WHAT_SIM_HARDWARE_ERROR

WHAT_SIM_INIT_TIMEOUT

public static final int WHAT_SIM_INIT_TIMEOUT

DEVICE_META_NONE

public static final int DEVICE_META_NONE
There are currently no active Meta keys

DEVICE_META_CAPS

public static final int DEVICE_META_CAPS
The Caps meta key is currently active.

DEVICE_META_ALT

public static final int DEVICE_META_ALT
The Alt meta key is currently active.

DEVICE_META_CAPS_LOCKED

public static final int DEVICE_META_CAPS_LOCKED
The Caps key is currently locked.

DEVICE_META_ALT_LOCKED

public static final int DEVICE_META_ALT_LOCKED
The Alt key is currently locked.

BATTERY_FLAG_DC_PLUG

public static final int BATTERY_FLAG_DC_PLUG

BATTERY_FLAG_POWER

public static final int BATTERY_FLAG_POWER

BATTERY_FLAG_CHARGE

public static final int BATTERY_FLAG_CHARGE

BATTERY_FLAG_FULL

public static final int BATTERY_FLAG_FULL

BATTERY_FLAG_TEMP

public static final int BATTERY_FLAG_TEMP

BATTERY_FLAG_SHUTDOWN

public static final int BATTERY_FLAG_SHUTDOWN

BATTERY_DISCHARGE

public static final int BATTERY_DISCHARGE
External power is not present and the battery is discharging normally.

BATTERY_NOPOWER

public static final int BATTERY_NOPOWER
The power adapter is plugged in, but it is not supplying power. The other end is probably not plugged into the wall.

BATTERY_CHARGE

public static final int BATTERY_CHARGE
External power is present and the battery is charging normally.

BATTERY_FULL

public static final int BATTERY_FULL
External power is present but charging has stopped because the battery is full.

BATTERY_HOT

public static final int BATTERY_HOT
External power is present but charging has stopped because the battery is too hot.

BATTERY_COLD

public static final int BATTERY_COLD
External power is present but charging has stopped because the battery is too cold.

DEVICE_WHEEL

public static final int DEVICE_WHEEL
Device wheel has been pushed up or pulled down. Sent to danger.ui.View.eventDeviceWidgetUp when the wheel is pushed up and to danger.ui.View.eventDeviceWidgetDown when the wheel is pulled down.

DEVICE_WHEEL_BUTTON

public static final int DEVICE_WHEEL_BUTTON
Device wheel has been pressed. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_BUTTON_BACK

public static final int DEVICE_BUTTON_BACK
Device Back button has been pressed. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_BUTTON_MENU

public static final int DEVICE_BUTTON_MENU
Device menu button has been pressed. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_ARROW_LEFT

public static final int DEVICE_ARROW_LEFT
Device joypad has been rocked left. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_ARROW_UP

public static final int DEVICE_ARROW_UP
Device joypad has been rocked up. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_ARROW_RIGHT

public static final int DEVICE_ARROW_RIGHT
Device joypad has been rocked right. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_ARROW_DOWN

public static final int DEVICE_ARROW_DOWN
Device joypad has been rocked down. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_BUTTON_JUMP

public static final int DEVICE_BUTTON_JUMP
Device Jump button has been pressed. Sent to danger.ui.View.eventDeviceWidgetUp or danger.ui.View.eventDeviceWidgetDown when the wheel is pressed. If you want auto-repeat functionality, override danger.ui.View.eventDeviceWidgetDown. If you don't, receive the event through danger.ui.View.eventDeviceWidgetUp.

DEVICE_MULTIPLE_WHEEL

public static final int DEVICE_MULTIPLE_WHEEL
Device wheel has been held up or down. Passed to danger.ui.View.eventDeviceWidgetUp when wheel is pushed up and to danger.ui.View.eventDeviceWidgetDown when wheel is pulled down. This is used for auto-repeat functionality. The 'what' parameter of the call will be relative to the amount of time the wheel was held in the up or down position.

DEVICE_WHEEL_PAGE_UP

public static final int DEVICE_WHEEL_PAGE_UP
Page up event for controls with large scrollable areas. This event occurs when the user hits the MENU button along with the wheel, scrolling upwards.

DEVICE_WHEEL_PAGE_DOWN

public static final int DEVICE_WHEEL_PAGE_DOWN
Page down event for controls with large scrollable areas. This event occurs when the user hits the MENU button along with the wheel, scrolling downwards.

WHAT_HEADSET_JACKED_IN

public static final int WHAT_HEADSET_JACKED_IN
Device headset has been plugged in. Mask for the Event.what parameter when the EVENT_HEADSET_STATUS event is received.

WHAT_HEADSET_JACKED_OUT

public static final int WHAT_HEADSET_JACKED_OUT
Device headset has been unplugged. Mask for the Event.what parameter when the EVENT_HEADSET_STATUS event is received.

WHAT_CAMERA_JACKED_IN

public static final int WHAT_CAMERA_JACKED_IN
Device camera has been plugged in. Mask for the Event.what parameter when the EVENT_CAMERA_STATUS event is received.

WHAT_CAMERA_JACKED_OUT

public static final int WHAT_CAMERA_JACKED_OUT
Device camera has been unplugged. Mask for the Event.what parameter when the EVENT_CAMERA_STATUS event is received.

WHAT_HINGE_OPENED

public static final int WHAT_HINGE_OPENED
Device screen has been swiveled open. Mask for the Event.what parameter when the EVENT_HINGE_CHANGED event is received.

WHAT_HINGE_CLOSED

public static final int WHAT_HINGE_CLOSED
Device screen has been swiveled closed. Mask for the Event.what parameter when the EVENT_HINGE_CHANGED event is received.

WHAT_SYSTEM_LOADED

public static final int WHAT_SYSTEM_LOADED
A system image has been downloaded and is waiting to be flashed. Mask for the Event.what parameter when the EVENT_LOADER event is received.

MESSAGE_GOTO_URL

public static final int MESSAGE_GOTO_URL
Application has received a request to go to a URL.

EVENT_MODIFIER_NONE

public static final int EVENT_MODIFIER_NONE
No modifiers are in effect. Mask to be used in conjunction with modifiers parameters of event handlers.
 if ((modifiers & Event.EVENT_MODIFIER_NONE) ==
     EventType.EVENT_MODIFIER_NONE)
     // No modifiers are in effect.
 

EVENT_MODIFIER_CAPS

public static final int EVENT_MODIFIER_CAPS
Caps Lock is down. Mask to be used in conjunction with modifiers parameters of event handlers.
 if ((modifiers & Event.EVENT_MODIFIER_CAPS) ==
     EventType.EVENT_MODIFIER_CAPS)
     // CAPS key is down.
 

EVENT_MODIFIER_ALT

public static final int EVENT_MODIFIER_ALT
ALT key is down. Mask to be used in conjunction with modifiers parameters of event handlers.
 if ((modifiers & Event.EVENT_MODIFIER_ALT) ==
     EventType.EVENT_MODIFIER_ALT)
     // ALT key is down.
 

EVENT_MODIFIER_SYM

public static final int EVENT_MODIFIER_SYM
SYM key is down. Mask to be used in conjunction with modifiers parameters of event handlers.
 if ((modifiers & Event.EVENT_MODIFIER_SYM) ==
     EventType.EVENT_MODIFIER_SYM)
     // SYM key is down.
 

EVENT_MODIFIER_BACK_BUTTON

public static final int EVENT_MODIFIER_BACK_BUTTON
Back Button is down. Mask to be used in conjunction with modifiers parameters of event handlers.
 if (event.ModifierIsActive(Event.EVENT_MODIFIER_BACK_BUTTON)
     // Back Button is down.
 

EVENT_MODIFIER_MENU_BUTTON

public static final int EVENT_MODIFIER_MENU_BUTTON
Menu Button is down. Mask to be used in conjunction with modifiers parameters of event handlers.
 if (event.ModifierIsActive(Event.EVENT_MODIFIER_MENU_BUTTON)
     // Menu Button is down.
 

EVENT_MODIFIER_JUMP_BUTTON

public static final int EVENT_MODIFIER_JUMP_BUTTON
Jump Button is down. Mask to be used in conjunction with modifiers parameters of event handlers.
 if (event.ModifierIsActive(Event.EVENT_MODIFIER_JUMP_BUTTON)
     // Jump Button is down.
 

RECORD_ADDED

public static final int RECORD_ADDED
A new record was added to the gallery

RECORD_REMOVED

public static final int RECORD_REMOVED
A record was deleted from the gallery

RECORD_MODIFIED

public static final int RECORD_MODIFIED
A record was modified from the gallery

RECORD_UID_CHANGED

public static final int RECORD_UID_CHANGED
The UID for a record has changed.

SORT_CHANGED

public static final int SORT_CHANGED
One of the open PhotoPickers has changed the sort order or type.

BITMAP_DECODED

public static final int BITMAP_DECODED
An PhotoRecord's decode bitmap is now ready to be viewed

RECORD_PENDING

public static final int RECORD_PENDING
A new record was added to the photo gallery but has not yet been synced

INDEX_CHANGED

public static final int INDEX_CHANGED
The current index in the image gallery controller has changed.

WHAT_SIM_DEPARTS

public static final int WHAT_SIM_DEPARTS
Physical SIM state has changed.

WHAT_SIM_ARRIVES

public static final int WHAT_SIM_ARRIVES


Danger Confidential. Copyright © 2000-2003, Danger Inc.