danger.app
Interface EventType

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
          Deprecated. use BatteryMonitor
static int BATTERY_COLD
          Deprecated. no longer applies
static int BATTERY_DISCHARGE
          Deprecated. use BatteryMonitor
static int BATTERY_FLAG_CHARGE
          Deprecated. use BatteryMonitor
static int BATTERY_FLAG_DC_PLUG
          Deprecated. no longer used
static int BATTERY_FLAG_FAULT
          Deprecated. no longer used
static int BATTERY_FLAG_FULL
          Deprecated. use BatteryMonitor
static int BATTERY_FLAG_POWER
          Deprecated. use BatteryMonitor
static int BATTERY_FLAG_SHUTDOWN
          Deprecated. use BatteryMonitor
static int BATTERY_FLAG_TEMP
          Deprecated. no longer used
static int BATTERY_FULL
          Deprecated. use BatteryMonitor
static int BATTERY_HOT
          Deprecated. no longer applies
static int BATTERY_NOPOWER
          Deprecated. use BatteryMonitor
static int BITMAP_DECODED
          A PhotoRecord's decoded bitmap is now ready to be viewed
static int DEVICE_ARROW_DOWN
          Down arrow key has been pressed.
static int DEVICE_ARROW_DOWN_LEFT
          Down/left diagonal has been pressed on dpad.
static int DEVICE_ARROW_DOWN_RIGHT
          Down/right diagonal has been pressed on dpad.
static int DEVICE_ARROW_LEFT
          Left arrow key has been pressed.
static int DEVICE_ARROW_RIGHT
          Right arrow key has been pressed.
static int DEVICE_ARROW_UP
          Up arrow key has been pressed.
static int DEVICE_ARROW_UP_LEFT
          Up/left diagonal has been pressed on dpad.
static int DEVICE_ARROW_UP_RIGHT
          Up/right diagonal has been pressed on dpad.
static int DEVICE_BUTTON_BACK
          Device Back button has been pressed.
static int DEVICE_BUTTON_CANCEL
          Activity on CANCEL button "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.
static int DEVICE_BUTTON_DONE
          Deprecated. This event is never actually sent. Use DEVICE_BUTTON_BACK instead.
static int DEVICE_BUTTON_END
          End key has been pressed "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.
static int DEVICE_BUTTON_JUMP
          Device Jump button has been pressed.
static int DEVICE_BUTTON_LEFT_SHOULDER
          Activity on left shoulder button.
static int DEVICE_BUTTON_MENU
          Device menu button has been pressed.
static int DEVICE_BUTTON_RIGHT_SHOULDER
          Activity on right shoulder button.
static int DEVICE_BUTTON_SEND
          Send key has been pressed "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.
static int DEVICE_BUTTON_VOLUME_DOWN
          Activity on VOL- button "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.
static int DEVICE_BUTTON_VOLUME_UP
          Activity on VOL+ button "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.
static int DEVICE_EXT_HOOK_DOWN
          The button on the earphone cable has been pressed.
static int DEVICE_EXT_HOOK_UP
          The button on the earphone cable has been released.
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
          Specifies that there are currently no active Meta keys.
static int DEVICE_META_SHIFT_ALT
          The Shift-Alt state is currently active.
static int DEVICE_MULTIPLE_WHEEL
          Device wheel has been held up or down.
static int DEVICE_NAVIGATION
           Trackball has been moved.
static int DEVICE_WHEEL
          Device wheel has been pushed up or pulled down.
static int DEVICE_WHEEL_BUTTON
          Device trackball 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_ACTIVE_SPEAKER_CHANGED
          active speaker has changed; speakerphone was turned on/off or headset was inserted.
static int EVENT_ADD_LINK
          Deprecated. For internal use only.
static int EVENT_ALARM
          An alarm has gone off.
static int EVENT_APP_NETWORK
          Deprecated. For internal use only.
static int EVENT_AUDIO
          Some sort of audio event has happened.
static int EVENT_AUDIO_MEDIA_VOLUME_CHANGE_REQUESTED
          Volume for media change requested.
static int EVENT_AUDIO_MEDIA_VOLUME_CHANGED
          Volume for media changed.
static int EVENT_AUTO_SYNC_DONE
          auto-sync done event
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_BACKLIGHT_CHANGED
          This event is sent to registered listeners when the backlight turns on or off.
static int EVENT_BATTERY_COVER_STATE_CHANGED
          Battery cover was removed or replaced by the user.
static int EVENT_BATTERY_STATE_CHANGED
          Battery state has changed.
static int EVENT_BLUETOOTH_STATE_CHANGED
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.State of bluetooth radio.
static int EVENT_CALL_CUSTOMER_CARE
          Deprecated. For internal use only.
static int EVENT_CAMERA_STATUS
          Deprecated. No longer used.
static int EVENT_CONNECTION_DOWN
          This event is sent when the network connection is dropped.
static int EVENT_CONNECTION_UP
          This event is sent when the network connection is started/resumed.
static int EVENT_CONTACTS_HAVE_SYNCED
          Sent after all contact data records have synced from the service after a hard reset.
static int EVENT_COPY
          Sent when the user selects the Copy operation for an edit text field.
static int EVENT_COPY_FROM_ADDRESS_BOOK
          when sent by the context menu to an EditText instance, a mini address list is opened when sent by a MiniAddressBook instance, the selected contact's phone number is inserted in the EditText.
static int EVENT_COPY_LINK
          Deprecated. For internal use only.
static int EVENT_CUT
          Sent when the user selects the Cut operation for an edit text field.
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_DATE_CHANGED
          This event gets sent when the date has changed.
static int EVENT_DELETE_SELECTION
          Sent when the user selects the Delete operation for an edit text field.
static int EVENT_ENTERING_KEY_GUARD
          This event is sent when the device is about to enter keyguard.
static int EVENT_FILESYSTEM_CONTENTS_CHANGED
          The contents of the filesystem changed.
static int EVENT_FILESYSTEM_MODE_CHANGED
          The filesystem layer's protection mode changed.
static int EVENT_FONT_MENU_ITEM_SELECTED
          Sent when the user selects a font from a menu created by Font.getFontMenu(danger.app.Listener) or Font.addFontsToMenu(danger.ui.Menu, danger.app.Listener).
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
          Deprecated. This event is no longer used.
static int EVENT_ICON_RECORD_UPDATED
          Deprecated. This event is no longer used.
static int EVENT_IM_SERVICES
          This signals an IM Services event
static int EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED
          Deprecated. This event is no longer used.
static int EVENT_IN_PHONE_STATUS
          Deprecated. For internal use only.
static int EVENT_INPUT_METHOD
          Deprecated. Unused.
static int EVENT_INVALID
          Specifies an invalid event.
static int EVENT_IP_ADDRESS
          Deprecated. For internal use only.
static int EVENT_JUMP_SHORTCUTS_CHANGED
          Jump shortcuts were changed by the user.
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_LEAVING_KEY_GUARD
          Device is about to leave keyguard.
static int EVENT_LINK_TEXT_BOX_HAS_PAGED_DOWN
          Deprecated. For internal use only.
static int EVENT_LINK_TEXT_BOX_HAS_PAGED_UP
          Deprecated. For internal use only.
static int EVENT_LOADER
          Deprecated. For internal use only.
static int EVENT_LOW_MEMORY
          device is running out of memory; it will probably be forced to reboot unless apps respond to this by freeing (nulling references to) any unnecessary resources
static int EVENT_MAILTO_LINK_ADD_CONTACT
          Deprecated. For internal use only.
static int EVENT_MEDIA_PLAYER_STATE_CHANGED
          Events related to interesting media player state changes.
static int EVENT_MENU_HIDDEN
          Deprecated. For internal use only.
static int EVENT_MENU_SHOWN
          Deprecated. For internal use only.
static int EVENT_MESSAGE
          This event type is used to send IPC messages.
static int EVENT_MIDLET_AUTO_SYNC_DONE
           
static int EVENT_MIDLET_DATASTORE_RESTORED
           
static int EVENT_MIDLET_DISPLAY_CLEARED
          Sent when a MIDlet display is no longer obscured.
static int EVENT_MIDLET_DISPLAY_OBSCURED
          Sent when a MIDlet display is partially or fully obscured.
static int EVENT_MIDLET_FUNNEL_TRANSACTION
          Sent when traffic intended for a MIDlet arrives on the funnel.
static int EVENT_MIDLET_MESSAGE
          events forwarded by the midlet ExtensionManager for various danger events
static int EVENT_MINUTE_TICK
          The time has changed.
static int EVENT_MODIFIER_ALT
          Deprecated. Use EventModifier.ALT instead.
static int EVENT_MODIFIER_BACK_BUTTON
          Deprecated. Use EventModifier.BACK instead.
static int EVENT_MODIFIER_CANCEL_BUTTON
          Deprecated. Use EventModifier.CANCEL instead.
static int EVENT_MODIFIER_CAPS
          Deprecated. Use EventModifier.SHIFT instead.
static int EVENT_MODIFIER_JUMP_BUTTON
          Deprecated. Use EventModifier.JUMP instead.
static int EVENT_MODIFIER_MENU_BUTTON
          Deprecated. Use EventModifier.MENU instead.
static int EVENT_MODIFIER_NONE
          Deprecated. Use EventModifier.NONE instead.
static int EVENT_MODIFIER_SYM
          Deprecated. Use EventModifier.SYM instead.
static int EVENT_MODIFIER_TRACKBALL
          Deprecated. Use EventModifier.TRACKBALL instead.
static int EVENT_MODIFIER_WHEEL
          Deprecated. No longer supported.
static int EVENT_NETWORK_ACTIVITY
          Deprecated. For internal use only.
static int EVENT_NETWORK_ERROR
          Deprecated. For internal use only.
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_OPEN_LINK
          Deprecated. For internal use only.
static int EVENT_PASTE
          Sent when the user selects the Paste operation for an edit text field.
static int EVENT_PDP_CONTEXT_ACTIVATION_ERROR
          Deprecated. This event is no longer used.
static int EVENT_PERIODIC_PULSE
          A periodic pulse sent to the active application.
static int EVENT_PHONE_LINK_ADD_CONTACT
          Deprecated. For internal use only.
static int EVENT_PHONE_STANDBY_TEXT_CHANGED
           The phone standby text has changed.
static int EVENT_PHOTO_GALLERY
          Sent when a PhotoRecord is added to or removed from the internal device gallery.
static int EVENT_PHOTO_GALLERY_PROXY
          Deprecated. This event is no longer used.
static int EVENT_PHOTO_PROXY_RECORD_CONTAINER
          Deprecated. This event is no longer used.
static int EVENT_PHOTO_RECORD
          Sent when a PhotoRecord is modified in some way..
static int EVENT_PHOTO_RECORD_UPDATED
          Deprecated. This event is no longer used.
static int EVENT_POWER
          Deprecated. use EVENT_BATTERY_STATE_CHANGED instead.
static int EVENT_POWER_ON
          Deprecated. For internal use only.
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
          Deprecated. For internal use only.
static int EVENT_PROFILE_CHANGED
          System master volume or mute status has been changed.
static int EVENT_RADIO_RESET
          Deprecated. For internal use only.
static int EVENT_RADIO_STATE_CHANGE
          Deprecated. For internal use only.
static int EVENT_RAW_KEY_DOWN
          This event is sent from the keyboard driver when a key is pressed.
static int EVENT_RAW_KEY_HELD
          This event is sent from the keyboard driver when a key has been held for a period of time.
static int EVENT_RAW_KEY_REPEAT
          This event is sent from the keyboard driver when a key has been pressed and held down.
static int EVENT_RAW_KEY_UP
          This event is sent from the keyboard driver when a key is released.
static int EVENT_REDO
          Sent when the user selects the Redo operation for an edit text field.
static int EVENT_ROAM_STATUS
          Deprecated. For internal use only.
static int EVENT_SCREEN_WINDOW_ACTIVATED
          Deprecated. Override ScreenWindow.onScreenWindowActivate() instead.
static int EVENT_SCREEN_WINDOW_DEACTIVATED
          Deprecated. Override ScreenWindow.onScreenWindowDeactivate() instead.
static int EVENT_SELECT_ALL
          Sent when the user selects the Select All operation for an edit text field.
static int EVENT_SEND_LINK
          Deprecated. For internal use only.
static int EVENT_SETTINGSDB_FLUSHED
          Deprecated. Unused.
static int EVENT_SHORTCUT
          A menu shortcut has been used.
static int EVENT_SHOW_EMERGENCY_SCREEN
          Deprecated. For internal use only.
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
          Deprecated. For internal use only.
static int EVENT_STOP_TEST_KEYPAD
          Deprecated. For internal use only.
static int EVENT_STORAGE_DEVICE_STATE_CHANGED
          State of storage media changed.
static int EVENT_STORE_STATE_CHANGED
          The state of the store has changed.
static int EVENT_SYSTEM_FONT_CHANGED
          Used by FontManager.registerForSystemFontChangedEvent(danger.app.Listener).
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
          Sent when the system Style (which governs how menus, dialogs, etc. look) changes.
static int EVENT_TIME_CHANGED
          System time has been changed.
static int EVENT_TIME_FORMAT_CHANGED
          This event is sent when the time format has been changed (12/24 hour format).
static int EVENT_TIMER
          A timer has fired.
static int EVENT_UNDO
          Sent when the user selects the Undo operation for an edit text field.
static int EVENT_USB_DATA
          Deprecated. Unused.
static int EVENT_USB_STATUS
          Deprecated. For internal use only.
static int EVENT_VIDEO
          Some sort of video event has happened.
static int EVENT_VIDEO_RECORD
          Sent to the observers of a VideoRecord if anything about it changes (its file is renamed, etc.)
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_ACTIVATED
          Deprecated. Override Window.onActivate() instead.
static int EVENT_WINDOW_DEACTIVATED
          Deprecated. Override Window.onDeactivate() instead.
static int EVENT_WINDOW_PAINT
          Deprecated. For internal use only.
static int MESSAGE_GOTO_URL
          Deprecated. Instead of handling this event directly, use Application.openURL(danger.net.URL).
static int MESSAGE_GOTO_URL_IN_BACKGROUND
          Deprecated. Instead of handling this event directly, use Application.openURLInBackground(danger.net.URL).
static int NAME_CHANGED
          The name of a photo record has changed.
static int PENDING_STATUS_VIEW_BITMAP_COUNT_CHANGED
          Sent to the PendingStatusView's listener when the number of pending status icons has changed.
static int PENDING_STATUS_VIEW_SIZE_CHANGED
          Sent to the PendingStatusView's listener when its size changes.
static int RECORD_ADDED
          A new record was added to 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_ROTATED
          A record has been rotated on the device.
static int RECORD_UPDATED
          A record has been updated from the service.
static int SELECTION_CHANGED
          The state of a record being selected has changed.
static int SORT_CHANGED
          One of the open PhotoPickers has changed the sort order or type.
static int UID_CHANGED
          The UID of this record has changed.
static int WHAT_AT_COMMAND_TIMEOUT
          Deprecated. For internal use only.
static int WHAT_BATTERY_COVER_REMOVED
          with EVENT_BATTERY_COVER_STATE_CHANGED, this indicates the state of the battery cover.
static int WHAT_BATTERY_COVER_REPLACED
          with EVENT_BATTERY_COVER_STATE_CHANGED, this indicates the state of the battery cover.
static int WHAT_BLUETOOTH_OFF
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.With EVENT_BLUETOOTH_STATE_CHANGED, this indicates the state of the device's bluetooth radio.
static int WHAT_BLUETOOTH_ON
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.With EVENT_BLUETOOTH_STATE_CHANGED, this indicates the state of the device's bluetooth radio.
static int WHAT_CAMERA_JACKED_IN
          Deprecated. No longer used.
static int WHAT_CAMERA_JACKED_OUT
          Deprecated. No longer used.
static int WHAT_CHANNEL_WRITE_TIMEOUT
          Deprecated. For internal use only.
static int WHAT_CMUX_BAD_CHECKSUM
          Deprecated. For internal use only.
static int WHAT_FILE_CREATED
          With EVENT_FILESYSTEM_CONTENTS_CHANGED indicates a file was added to the filesystem.
static int WHAT_FILE_DELETED
          With EVENT_FILESYSTEM_CONTENTS_CHANGED indicates a file was deleted from the filesystem.
static int WHAT_FILE_MODIFIED
          With EVENT_FILESYSTEM_CONTENTS_CHANGED indicates a file was modified on the filesystem.
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_LOW_DATA
          with EVENT_LOW_MEMORY, means that the system is running low on data space (memory per se)
static int WHAT_LOW_HANDLES
          with EVENT_LOW_MEMORY, means that the system is running low on handles
static int WHAT_MEDIA_PLAYER_HIDE_MINI
          Mini-player hidden
static int WHAT_MEDIA_PLAYER_PAUSE_TRACK
          Media player paused a playing track
static int WHAT_MEDIA_PLAYER_SHOW_MINI
          Mini-player shown
static int WHAT_MEDIA_PLAYER_START_TRACK
          Media player started playing a track
static int WHAT_MEDIA_PLAYER_STOP_TRACK
          Media player stopped playing a track
static int WHAT_MEDIA_PLAYER_UPDATE_TRACK
          Media player changed currently playing tracks
static int WHAT_MODE_READ_ONLY
          With EVENT_FILESYSTEM_MODE_CHANGED, means the filesystem layer is now in read-only mode.
static int WHAT_MODE_READ_WRITE
          With EVENT_FILESYSTEM_MODE_CHANGED, means the filesystem layer is now in read-write mode.
static int WHAT_NETWORK_IP_DEAD
          Deprecated. For internal use only.
static int WHAT_NETWORK_PDP_DEACTIVATED
          Deprecated. For internal use only.
static int WHAT_NETWORK_PERSONALIZATION_RESTORED
          Deprecated. For internal use only.
static int WHAT_NETWORK_PERSONALIZATION_SAVED
          Deprecated. For internal use only.
static int WHAT_NVMEM_ERASED
          Deprecated. For internal use only.
static int WHAT_OUT_OF_BUFFERS
          Deprecated. For internal use only.
static int WHAT_PDP_ACTIVATE_TIMEOUT
          Deprecated. For internal use only.
static int WHAT_POSITION_REACHED
          Event.what parameter for EVENT_AUDIO event indicating that a position has been reached.
static int WHAT_RADIO_FIRMWARE_FIXED
          Deprecated. For internal use only.
static int WHAT_RADIO_IGNORED_LOW_POWER_REQUEST
          Deprecated. For internal use only.
static int WHAT_RADIO_RESET
          Deprecated. For internal use only.
static int WHAT_RADIO_WONT_WAKE
          Deprecated. For internal use only.
static int WHAT_RECORDING_ABORTED
          Deprecated. - Use WHAT_RECORDING_DONE instead.
static int WHAT_RECORDING_DONE
          Event.what parameter for EVENT_AUDIO event indicating that recording has stopped on its own, usually due to reaching its specified duration.
static int WHAT_RECORDING_ERROR
          An error happened during audio recording.
static int WHAT_RECORDING_STARTED
          Event.what parameter for EVENT_AUDIO event indicating that recording has started.
static int WHAT_RECORDING_STOPPED
          Event.what parameter for EVENT_AUDIO event indicating that recording has been stopped.
static int WHAT_SEQUENCE_LOOPED
          Event.what parameter for EVENT_AUDIO event indicating that a sequence has looped.
static int WHAT_SEQUENCE_PURGED
          Event.what parameter for EVENT_AUDIO event indicating that a sequence has been purged.
static int WHAT_SEQUENCE_STOPPED
          Event.what parameter for EVENT_AUDIO event indicating that a sequence has stopped.
static int WHAT_SERIAL_WRITE_TIMEOUT
          Deprecated. For internal use only.
static int WHAT_SIM_ARRIVES
          Used with EVENT_SIM_PRESENCE to note that a SIM card has been inserted.
static int WHAT_SIM_DEPARTS
          Used with EVENT_SIM_PRESENCE to note that a SIM card has been removed.
static int WHAT_SIM_HARDWARE_ERROR
          Deprecated. For internal use only.
static int WHAT_SIM_INIT_TIMEOUT
          Deprecated. For internal use only.
static int WHAT_SOUND_LOOPED
          Event.what parameter for EVENT_AUDIO event indicating that a sound has looped.
static int WHAT_SOUND_PURGED
          Event.what parameter for EVENT_AUDIO event indicating that a sound has been purged.
static int WHAT_SOUND_STOPPED
          Event.what parameter for EVENT_AUDIO event indicating that a sound has stopped.
static int WHAT_SPEAKER_BLUETOOTH
          With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the bluetooth headset.
static int WHAT_SPEAKER_HEADSET
          With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the headset.
static int WHAT_SPEAKER_INTERNAL
          With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the internal speaker.
static int WHAT_SPEAKER_SPEAKERPHONE
          With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the speaker phone.
static int WHAT_STAR_99_POUND_ERROR
          Deprecated. For internal use only.
static int WHAT_STORAGE_DEVICE_INSERTED
          Storage media inserted.
static int WHAT_STORAGE_DEVICE_MODIFIED
          Storage media properties changed (writable, volume name changed).
static int WHAT_STORAGE_DEVICE_MOUNTED
          Storage media mounted for general access.
static int WHAT_STORAGE_DEVICE_PUBLISHED
          Storage media published to USB mass storage.
static int WHAT_STORAGE_DEVICE_REMOVED
          Storage media removed.
static int WHAT_STORAGE_DEVICE_UNMOUNTED
          Storage media unmounted, and no longer accessible.
static int WHAT_STORAGE_DEVICE_UNPUBLISHED
          Storage media removed from USB mass storage.
static int WHAT_STORE_OFFLINE
          With EVENT_STORE_STATE_CHANGED indicates the store is now unavailable.
static int WHAT_STORE_PRECACHING
          With EVENT_STORE_STATE_CHANGED indicates the store is currently precaching the results of a scan.
static int WHAT_STORE_READY
          With EVENT_STORE_STATE_CHANGED indicates the store is now available.
static int WHAT_STORE_SCANNING
          With EVENT_STORE_STATE_CHANGED indicates the store is currently scanning.
static int WHAT_STREAM_LOOPED
          Event.what parameter for EVENT_AUDIO event indicating that a stream has looped.
static int WHAT_STREAM_STOPPED
          Event.what parameter for EVENT_AUDIO event indicating that a stream has stopped.
static int WHAT_SYSTEM_LOADED
          Deprecated. For internal use only.
static int WHAT_TONE_INSTALLED
          Event.what parameter for EVENT_AUDIO event indicating that a tone has been installed.
static int WHAT_TONE_REMOVED
          Event.what parameter for EVENT_AUDIO event indicating that a tone has been removed.
static int WHAT_TONE_START
          Event.what parameter for EVENT_AUDIO event indicating that a tone has started.
static int WHAT_TONE_STOP
          Event.what parameter for EVENT_AUDIO event indicating that a tone has stopped.
static int WHAT_UART_BREAK
          Deprecated. For internal use only.
static int WHAT_UART_FRAMING_ERROR
          Deprecated. For internal use only.
static int WHAT_UART_OVERRUN
          Deprecated. For internal use only.
static int WHAT_VIDEO_LOOPED
          Event.what parameter for EVENT_VIDEO.
static int WHAT_VIDEO_POSITION_REACHED
          Event.what parameter for EVENT_VIDEO.
static int WHAT_VIDEO_STOPPED
          Event.what parameter for EVENT_VIDEO.
 

Field Detail

EVENT_APP_NETWORK

static final int EVENT_APP_NETWORK
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_LOADER

static final int EVENT_LOADER
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_IN_PHONE_STATUS

static final int EVENT_IN_PHONE_STATUS
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_ROAM_STATUS

static final int EVENT_ROAM_STATUS
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_KEY_UP

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.

See Also:
Constant Field Values

EVENT_KEY_DOWN

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.

See Also:
Constant Field Values

EVENT_WIDGET_UP

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

See Also:
Constant Field Values

EVENT_WIDGET_DOWN

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

See Also:
Constant Field Values

EVENT_WIDGET_HELD

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

See Also:
Constant Field Values

EVENT_KEY_META

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:

See Also:
Constant Field Values

EVENT_POWER_SWITCH_DOWN

static final int EVENT_POWER_SWITCH_DOWN
The power switch key was pressed.

See Also:
Constant Field Values

EVENT_POWER_SWITCH_UP

static final int EVENT_POWER_SWITCH_UP
The power switch key was released.

See Also:
Constant Field Values

EVENT_SHORTCUT

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, Constant Field Values

EVENT_MINUTE_TICK

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.

See Also:
Constant Field Values

EVENT_POWER

static final int EVENT_POWER
Deprecated. use EVENT_BATTERY_STATE_CHANGED instead.
See Also:
Constant Field Values

EVENT_BATTERY_STATE_CHANGED

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

See Also:
Constant Field Values

BATTERY_FLAG_DC_PLUG

static final int BATTERY_FLAG_DC_PLUG
Deprecated. no longer used
See Also:
Constant Field Values

BATTERY_FLAG_POWER

static final int BATTERY_FLAG_POWER
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_FLAG_CHARGE

static final int BATTERY_FLAG_CHARGE
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_FLAG_FULL

static final int BATTERY_FLAG_FULL
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_FLAG_TEMP

static final int BATTERY_FLAG_TEMP
Deprecated. no longer used
See Also:
Constant Field Values

BATTERY_FLAG_SHUTDOWN

static final int BATTERY_FLAG_SHUTDOWN
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_FLAG_FAULT

static final int BATTERY_FLAG_FAULT
Deprecated. no longer used
See Also:
Constant Field Values

BATTERY_DISCHARGE

static final int BATTERY_DISCHARGE
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_NOPOWER

static final int BATTERY_NOPOWER
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_CHARGE

static final int BATTERY_CHARGE
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_FULL

static final int BATTERY_FULL
Deprecated. use BatteryMonitor
See Also:
Constant Field Values

BATTERY_HOT

static final int BATTERY_HOT
Deprecated. no longer applies
See Also:
Constant Field Values

BATTERY_COLD

static final int BATTERY_COLD
Deprecated. no longer applies
See Also:
Constant Field Values

EVENT_MENU_SHOWN

static final int EVENT_MENU_SHOWN
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_MENU_HIDDEN

static final int EVENT_MENU_HIDDEN
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_AUDIO

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

See Also:
Constant Field Values

EVENT_INPUT_METHOD

static final int EVENT_INPUT_METHOD
Deprecated. Unused.
See Also:
Constant Field Values

EVENT_KEY_HELD

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.

See Also:
Constant Field Values

EVENT_USB_DATA

static final int EVENT_USB_DATA
Deprecated. Unused.
See Also:
Constant Field Values

EVENT_SETTINGSDB_FLUSHED

static final int EVENT_SETTINGSDB_FLUSHED
Deprecated. Unused.
See Also:
Constant Field Values

EVENT_DATASTORE_RESTORED

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.

See Also:
Constant Field Values

EVENT_AUTOSYNC_CATEGORYID_CHANGED

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.

See Also:
Constant Field Values

EVENT_SIGNAL_STRENGTH

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

See Also:
Constant Field Values

EVENT_TIMER

static final int EVENT_TIMER
A timer has fired. This event is sent when a timer has fired.

See Also:
Timer, Constant Field Values

EVENT_ALARM

static final int EVENT_ALARM
An alarm has gone off. This event is sent when an alarm has gone off.

See Also:
Alarm, Constant Field Values

EVENT_SHOW_EMERGENCY_SCREEN

static final int EVENT_SHOW_EMERGENCY_SCREEN
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_PERIODIC_PULSE

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

See Also:
Constant Field Values

EVENT_TIME_CHANGED

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.

See Also:
Constant Field Values

EVENT_NETWORK_STATUS

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

See Also:
Constant Field Values

EVENT_WINDOW_PAINT

static final int EVENT_WINDOW_PAINT
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_HINGE_CHANGED

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.

See Also:
Constant Field Values

EVENT_MESSAGE

static final int EVENT_MESSAGE
This event type is used to send IPC messages. The what field contains the what value used in Registrar.registerProvider(java.lang.String, danger.app.Listener, int), and the argument field contains the IPC message object.

See Also:
Constant Field Values

EVENT_USB_STATUS

static final int EVENT_USB_STATUS
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_KEY_REPEAT

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.

See Also:
Constant Field Values

EVENT_HEADSET_STATUS

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

See Also:
Constant Field Values

EVENT_CAMERA_STATUS

static final int EVENT_CAMERA_STATUS
Deprecated. No longer used.
See Also:
Constant Field Values

EVENT_NUM_ACTIVE_VOICE_CALLS_CHANGED

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

See Also:
Constant Field Values

EVENT_CALL_CUSTOMER_CARE

static final int EVENT_CALL_CUSTOMER_CARE
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_NETWORK_ACTIVITY

static final int EVENT_NETWORK_ACTIVITY
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_PROFILE_CHANGED

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

See Also:
Constant Field Values

EVENT_SIM_UNLOCKED

static final int EVENT_SIM_UNLOCKED
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_SIM_PRESENCE

static final int EVENT_SIM_PRESENCE
Physical SIM state has changed. Posted by system when SIM in inserted or removed. Note that current hardware does not support this.

See Also:
Constant Field Values

EVENT_NETWORK_ERROR

static final int EVENT_NETWORK_ERROR
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_POWER_ON

static final int EVENT_POWER_ON
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_IP_ADDRESS

static final int EVENT_IP_ADDRESS
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_RADIO_RESET

static final int EVENT_RADIO_RESET
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_SYSTEM_STYLE_CHANGED

static final int EVENT_SYSTEM_STYLE_CHANGED
Sent when the system Style (which governs how menus, dialogs, etc. look) changes. Note that this is not currently supported.

See Also:
Constant Field Values

EVENT_PREFERENCES_CHANGED

static final int EVENT_PREFERENCES_CHANGED
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_CUT

static final int EVENT_CUT
Sent when the user selects the Cut operation for an edit text field.

See Also:
Constant Field Values

EVENT_COPY

static final int EVENT_COPY
Sent when the user selects the Copy operation for an edit text field.

See Also:
Constant Field Values

EVENT_PASTE

static final int EVENT_PASTE
Sent when the user selects the Paste operation for an edit text field.

See Also:
Constant Field Values

EVENT_SELECT_ALL

static final int EVENT_SELECT_ALL
Sent when the user selects the Select All operation for an edit text field.

See Also:
Constant Field Values

EVENT_DELETE_SELECTION

static final int EVENT_DELETE_SELECTION
Sent when the user selects the Delete operation for an edit text field.

See Also:
Constant Field Values

EVENT_ICON_GALLERY_UPDATED

static final int EVENT_ICON_GALLERY_UPDATED
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_PHOTO_RECORD_UPDATED

static final int EVENT_PHOTO_RECORD_UPDATED
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_ICON_RECORD_UPDATED

static final int EVENT_ICON_RECORD_UPDATED
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED

static final int EVENT_IMAGE_GALLERY_CONTROLLER_UPDATED
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_ENTERING_KEY_GUARD

static final int EVENT_ENTERING_KEY_GUARD
This event is sent when the device is about to enter keyguard. To receive this event, you must call Application.registerForEvent(danger.app.Listener, int). See related event EVENT_LEAVING_KEY_GUARD.

See Also:
Constant Field Values

EVENT_CONNECTION_DOWN

static final int EVENT_CONNECTION_DOWN
This event is sent when the network connection is dropped. To receive this event, you must call Application.setReceiveConnectivityEvents(boolean).

See Also:
Constant Field Values

EVENT_CONNECTION_UP

static final int EVENT_CONNECTION_UP
This event is sent when the network connection is started/resumed. To receive this event, you must call Application.setReceiveConnectivityEvents(boolean).

See Also:
Constant Field Values

EVENT_AUTO_SYNC_DONE

static final int EVENT_AUTO_SYNC_DONE
auto-sync done event

See Also:
Constant Field Values

EVENT_TIME_FORMAT_CHANGED

static final int EVENT_TIME_FORMAT_CHANGED
This event is sent when the time format has been changed (12/24 hour format). To receive this event, you must call Application.registerForEvent(danger.app.Listener, int).

See Also:
Constant Field Values

EVENT_WINDOW_ACTIVATED

static final int EVENT_WINDOW_ACTIVATED
Deprecated. Override Window.onActivate() instead.
See Also:
Constant Field Values

EVENT_WINDOW_DEACTIVATED

static final int EVENT_WINDOW_DEACTIVATED
Deprecated. Override Window.onDeactivate() instead.
See Also:
Constant Field Values

EVENT_SCREEN_WINDOW_ACTIVATED

static final int EVENT_SCREEN_WINDOW_ACTIVATED
Deprecated. Override ScreenWindow.onScreenWindowActivate() instead.
See Also:
Constant Field Values

EVENT_SCREEN_WINDOW_DEACTIVATED

static final int EVENT_SCREEN_WINDOW_DEACTIVATED
Deprecated. Override ScreenWindow.onScreenWindowDeactivate() instead.
See Also:
Constant Field Values

EVENT_RAW_KEY_DOWN

static final int EVENT_RAW_KEY_DOWN
This event is sent from the keyboard driver when a key is pressed. The keycode is from a device-neutral keymap.

See Also:
Constant Field Values

EVENT_RAW_KEY_UP

static final int EVENT_RAW_KEY_UP
This event is sent from the keyboard driver when a key is released. The keycode is from a device-neutral keymap.

See Also:
Constant Field Values

EVENT_RAW_KEY_REPEAT

static final int EVENT_RAW_KEY_REPEAT
This event is sent from the keyboard driver when a key has been pressed and held down.

See Also:
Constant Field Values

EVENT_RAW_KEY_HELD

static final int EVENT_RAW_KEY_HELD
This event is sent from the keyboard driver when a key has been held for a period of time.

See Also:
Constant Field Values

EVENT_BACKLIGHT_CHANGED

static final int EVENT_BACKLIGHT_CHANGED
This event is sent to registered listeners when the backlight turns on or off.

See Also:
Constant Field Values

EVENT_UNDO

static final int EVENT_UNDO
Sent when the user selects the Undo operation for an edit text field.

See Also:
Constant Field Values

EVENT_REDO

static final int EVENT_REDO
Sent when the user selects the Redo operation for an edit text field.

See Also:
Constant Field Values

EVENT_LINK_TEXT_BOX_HAS_PAGED_UP

static final int EVENT_LINK_TEXT_BOX_HAS_PAGED_UP
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_LINK_TEXT_BOX_HAS_PAGED_DOWN

static final int EVENT_LINK_TEXT_BOX_HAS_PAGED_DOWN
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_PHOTO_RECORD

static final int EVENT_PHOTO_RECORD
Sent when a PhotoRecord is modified in some way..

See Also:
Constant Field Values

EVENT_PHOTO_GALLERY

static final int EVENT_PHOTO_GALLERY
Sent when a PhotoRecord is added to or removed from the internal device gallery.

See Also:
Constant Field Values

EVENT_PHOTO_GALLERY_PROXY

static final int EVENT_PHOTO_GALLERY_PROXY
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_PHOTO_PROXY_RECORD_CONTAINER

static final int EVENT_PHOTO_PROXY_RECORD_CONTAINER
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_STOP_TEST_KEYPAD

static final int EVENT_STOP_TEST_KEYPAD
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_PDP_CONTEXT_ACTIVATION_ERROR

static final int EVENT_PDP_CONTEXT_ACTIVATION_ERROR
Deprecated. This event is no longer used.
See Also:
Constant Field Values

EVENT_RADIO_STATE_CHANGE

static final int EVENT_RADIO_STATE_CHANGE
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_IM_SERVICES

static final int EVENT_IM_SERVICES
This signals an IM Services event

See Also:
Constant Field Values

EVENT_OPEN_LINK

static final int EVENT_OPEN_LINK
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_COPY_LINK

static final int EVENT_COPY_LINK
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_SEND_LINK

static final int EVENT_SEND_LINK
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_ADD_LINK

static final int EVENT_ADD_LINK
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_LEAVING_KEY_GUARD

static final int EVENT_LEAVING_KEY_GUARD
Device is about to leave keyguard. Used by system to indicate that the device is about to leave keyguard mode.

See Also:
Constant Field Values

EVENT_MAILTO_LINK_ADD_CONTACT

static final int EVENT_MAILTO_LINK_ADD_CONTACT
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_LOW_MEMORY

static final int EVENT_LOW_MEMORY
device is running out of memory; it will probably be forced to reboot unless apps respond to this by freeing (nulling references to) any unnecessary resources

See Also:
Constant Field Values

EVENT_PHONE_LINK_ADD_CONTACT

static final int EVENT_PHONE_LINK_ADD_CONTACT
Deprecated. For internal use only.
See Also:
Constant Field Values

EVENT_ACTIVE_SPEAKER_CHANGED

static final int EVENT_ACTIVE_SPEAKER_CHANGED
active speaker has changed; speakerphone was turned on/off or headset was inserted.

See Also:
Constant Field Values

EVENT_AUDIO_MEDIA_VOLUME_CHANGED

static final int EVENT_AUDIO_MEDIA_VOLUME_CHANGED
Volume for media changed. The volume for the currently playing media has been changed as a result of the user clicking the volume buttons, and the device processing the native call to the audio engine. To receive this event, you must call Application.registerForEvent(danger.app.Listener, int).

See Also:
Constant Field Values

EVENT_BATTERY_COVER_STATE_CHANGED

static final int EVENT_BATTERY_COVER_STATE_CHANGED

Battery cover was removed or replaced by the user.

To receive this event, you must register to receive it by using Application.registerForEvent(danger.app.Listener, int).

The event what field will be either WHAT_BATTERY_COVER_REMOVED or WHAT_BATTERY_COVER_REPLACED.

Note, if you are only interested in whether the memory card is currently available, you should instead use EVENT_FILESYSTEM_MODE_CHANGED.

See Also:
Constant Field Values

EVENT_JUMP_SHORTCUTS_CHANGED

static final int EVENT_JUMP_SHORTCUTS_CHANGED

Jump shortcuts were changed by the user.

In order to receive this event, you need to register for it by using HotKeyManager.registerForHotKeyChangedEvents(danger.app.Listener).

See Also:
Constant Field Values

EVENT_STORAGE_DEVICE_STATE_CHANGED

static final int EVENT_STORAGE_DEVICE_STATE_CHANGED
State of storage media changed.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_INSERTED

static final int WHAT_STORAGE_DEVICE_INSERTED
Storage media inserted.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_REMOVED

static final int WHAT_STORAGE_DEVICE_REMOVED
Storage media removed.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_MOUNTED

static final int WHAT_STORAGE_DEVICE_MOUNTED
Storage media mounted for general access.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_UNMOUNTED

static final int WHAT_STORAGE_DEVICE_UNMOUNTED
Storage media unmounted, and no longer accessible.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_PUBLISHED

static final int WHAT_STORAGE_DEVICE_PUBLISHED
Storage media published to USB mass storage.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_UNPUBLISHED

static final int WHAT_STORAGE_DEVICE_UNPUBLISHED
Storage media removed from USB mass storage.

See Also:
Constant Field Values

WHAT_STORAGE_DEVICE_MODIFIED

static final int WHAT_STORAGE_DEVICE_MODIFIED
Storage media properties changed (writable, volume name changed).

See Also:
Constant Field Values

EVENT_BLUETOOTH_STATE_CHANGED

static final int EVENT_BLUETOOTH_STATE_CHANGED
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
State of bluetooth radio. This is sent when the bluetooth radio is turned on or off, and when the preferred device has been changed.

See Also:
Constant Field Values

EVENT_AUDIO_MEDIA_VOLUME_CHANGE_REQUESTED

static final int EVENT_AUDIO_MEDIA_VOLUME_CHANGE_REQUESTED
Volume for media change requested. The volume for the currently playing media needs to change in response to the user clicking the device buttons. In order to receive this event, you need to register to receive it with AudioManager.registerMediaPlayer(danger.app.Listener, java.lang.String, danger.ui.Bitmap).

See Also:
AudioManager, Constant Field Values

EVENT_MEDIA_PLAYER_STATE_CHANGED

static final int EVENT_MEDIA_PLAYER_STATE_CHANGED
Events related to interesting media player state changes.

See Also:
Constant Field Values

WHAT_MEDIA_PLAYER_SHOW_MINI

static final int WHAT_MEDIA_PLAYER_SHOW_MINI
Mini-player shown

See Also:
Constant Field Values

WHAT_MEDIA_PLAYER_HIDE_MINI

static final int WHAT_MEDIA_PLAYER_HIDE_MINI
Mini-player hidden

See Also:
Constant Field Values

WHAT_MEDIA_PLAYER_START_TRACK

static final int WHAT_MEDIA_PLAYER_START_TRACK
Media player started playing a track

See Also:
Constant Field Values

WHAT_MEDIA_PLAYER_UPDATE_TRACK

static final int WHAT_MEDIA_PLAYER_UPDATE_TRACK
Media player changed currently playing tracks

See Also:
Constant Field Values

WHAT_MEDIA_PLAYER_PAUSE_TRACK

static final int WHAT_MEDIA_PLAYER_PAUSE_TRACK
Media player paused a playing track

See Also:
Constant Field Values

WHAT_MEDIA_PLAYER_STOP_TRACK

static final int WHAT_MEDIA_PLAYER_STOP_TRACK
Media player stopped playing a track

See Also:
Constant Field Values

EVENT_PHONE_STANDBY_TEXT_CHANGED

static final int EVENT_PHONE_STANDBY_TEXT_CHANGED

The phone standby text has changed. This is usually just the carrier name of the tower you are connected to.

To receive this event, you must register to receive it by using Application.registerForEvent(danger.app.Listener, int).

See Also:
Constant Field Values

EVENT_MIDLET_DISPLAY_OBSCURED

static final int EVENT_MIDLET_DISPLAY_OBSCURED
Sent when a MIDlet display is partially or fully obscured. Canvas.hideNotify() is not called when a dialog pops up and obscures part of the display, so a MIDlet must register for this event instead.

See Also:
ExtensionManager.addDisplayListener(danger.app.Listener), Constant Field Values

EVENT_MIDLET_DISPLAY_CLEARED

static final int EVENT_MIDLET_DISPLAY_CLEARED
Sent when a MIDlet display is no longer obscured. Canvas.showNotify() is not called when a dialog is hidden, so a MIDlet must register for this event instead.

See Also:
ExtensionManager.addDisplayListener(danger.app.Listener), Constant Field Values

EVENT_MIDLET_FUNNEL_TRANSACTION

static final int EVENT_MIDLET_FUNNEL_TRANSACTION
Sent when traffic intended for a MIDlet arrives on the funnel. Funnel events normally come in through the Application.networkEvent() method, but since MIDlets don't have a public Application object, they must register for this event instead.

See Also:
ExtensionManager.addNetworkListener(danger.app.Listener), Constant Field Values

EVENT_SYSTEM_FONT_CHANGED

static final int EVENT_SYSTEM_FONT_CHANGED
Used by FontManager.registerForSystemFontChangedEvent(danger.app.Listener).

Since:
4.0
See Also:
Constant Field Values

EVENT_FILESYSTEM_CONTENTS_CHANGED

static final int EVENT_FILESYSTEM_CONTENTS_CHANGED
The contents of the filesystem changed. Will be accompanied by one of the following:

Since:
4.0
See Also:
Constant Field Values

EVENT_VIDEO

static final int EVENT_VIDEO
Some sort of video event has happened.

Since:
4.5
See Also:
Constant Field Values

WHAT_FILE_CREATED

static final int WHAT_FILE_CREATED
With EVENT_FILESYSTEM_CONTENTS_CHANGED indicates a file was added to the filesystem.

Since:
4.0
See Also:
Constant Field Values

WHAT_FILE_DELETED

static final int WHAT_FILE_DELETED
With EVENT_FILESYSTEM_CONTENTS_CHANGED indicates a file was deleted from the filesystem.

Since:
4.0
See Also:
Constant Field Values

WHAT_FILE_MODIFIED

static final int WHAT_FILE_MODIFIED
With EVENT_FILESYSTEM_CONTENTS_CHANGED indicates a file was modified on the filesystem.

Since:
4.0
See Also:
Constant Field Values

EVENT_STORE_STATE_CHANGED

static final int EVENT_STORE_STATE_CHANGED
The state of the store has changed. Will be accompanied by one of the following:

Since:
4.0
See Also:
Constant Field Values

WHAT_STORE_READY

static final int WHAT_STORE_READY
With EVENT_STORE_STATE_CHANGED indicates the store is now available.

Since:
4.0
See Also:
Constant Field Values

WHAT_STORE_OFFLINE

static final int WHAT_STORE_OFFLINE
With EVENT_STORE_STATE_CHANGED indicates the store is now unavailable.

Since:
4.0
See Also:
Constant Field Values

WHAT_STORE_SCANNING

static final int WHAT_STORE_SCANNING
With EVENT_STORE_STATE_CHANGED indicates the store is currently scanning.

Since:
4.0
See Also:
Constant Field Values

WHAT_STORE_PRECACHING

static final int WHAT_STORE_PRECACHING
With EVENT_STORE_STATE_CHANGED indicates the store is currently precaching the results of a scan.

Since:
4.0
See Also:
Constant Field Values

EVENT_INVALID

static final int EVENT_INVALID
Specifies an invalid event. This is used internally.

See Also:
Constant Field Values

EVENT_FILESYSTEM_MODE_CHANGED

static final int EVENT_FILESYSTEM_MODE_CHANGED
The filesystem layer's protection mode changed. Will be accompanied by one of the following:

Since:
4.0
See Also:
Constant Field Values

WHAT_MODE_READ_ONLY

static final int WHAT_MODE_READ_ONLY
With EVENT_FILESYSTEM_MODE_CHANGED, means the filesystem layer is now in read-only mode.

Since:
4.0
See Also:
Constant Field Values

WHAT_MODE_READ_WRITE

static final int WHAT_MODE_READ_WRITE
With EVENT_FILESYSTEM_MODE_CHANGED, means the filesystem layer is now in read-write mode.

Since:
4.0
See Also:
Constant Field Values

EVENT_SYSTEM_LAST

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

See Also:
Constant Field Values

WHAT_SEQUENCE_STOPPED

static final int WHAT_SEQUENCE_STOPPED
Event.what parameter for EVENT_AUDIO event indicating that a sequence has stopped.

See Also:
Constant Field Values

WHAT_SOUND_STOPPED

static final int WHAT_SOUND_STOPPED
Event.what parameter for EVENT_AUDIO event indicating that a sound has stopped.

See Also:
Constant Field Values

WHAT_SEQUENCE_PURGED

static final int WHAT_SEQUENCE_PURGED
Event.what parameter for EVENT_AUDIO event indicating that a sequence has been purged.

See Also:
Constant Field Values

WHAT_SOUND_PURGED

static final int WHAT_SOUND_PURGED
Event.what parameter for EVENT_AUDIO event indicating that a sound has been purged.

See Also:
Constant Field Values

WHAT_TONE_INSTALLED

static final int WHAT_TONE_INSTALLED
Event.what parameter for EVENT_AUDIO event indicating that a tone has been installed.

See Also:
Constant Field Values

WHAT_TONE_REMOVED

static final int WHAT_TONE_REMOVED
Event.what parameter for EVENT_AUDIO event indicating that a tone has been removed.

See Also:
Constant Field Values

WHAT_RECORDING_STARTED

static final int WHAT_RECORDING_STARTED
Event.what parameter for EVENT_AUDIO event indicating that recording has started.

See Also:
Constant Field Values

WHAT_RECORDING_STOPPED

static final int WHAT_RECORDING_STOPPED
Event.what parameter for EVENT_AUDIO event indicating that recording has been stopped.

See Also:
Constant Field Values

WHAT_RECORDING_ABORTED

static final int WHAT_RECORDING_ABORTED
Deprecated. - Use WHAT_RECORDING_DONE instead.
Event.what parameter for EVENT_AUDIO event indicating that recording has stopped on its own, usually due to reaching its specified duration.

See Also:
Constant Field Values

WHAT_RECORDING_DONE

static final int WHAT_RECORDING_DONE
Event.what parameter for EVENT_AUDIO event indicating that recording has stopped on its own, usually due to reaching its specified duration.

Since:
4.5
See Also:
Constant Field Values

WHAT_RECORDING_ERROR

static final int WHAT_RECORDING_ERROR
An error happened during audio recording. Specific error types are returned in the data field:

Since:
4.0
See Also:
Constant Field Values

WHAT_TONE_START

static final int WHAT_TONE_START
Event.what parameter for EVENT_AUDIO event indicating that a tone has started.

See Also:
Constant Field Values

WHAT_TONE_STOP

static final int WHAT_TONE_STOP
Event.what parameter for EVENT_AUDIO event indicating that a tone has stopped.

See Also:
Constant Field Values

WHAT_SEQUENCE_LOOPED

static final int WHAT_SEQUENCE_LOOPED
Event.what parameter for EVENT_AUDIO event indicating that a sequence has looped.

See Also:
Constant Field Values

WHAT_SOUND_LOOPED

static final int WHAT_SOUND_LOOPED
Event.what parameter for EVENT_AUDIO event indicating that a sound has looped.

See Also:
Constant Field Values

WHAT_STREAM_STOPPED

static final int WHAT_STREAM_STOPPED
Event.what parameter for EVENT_AUDIO event indicating that a stream has stopped.

See Also:
Constant Field Values

WHAT_STREAM_LOOPED

static final int WHAT_STREAM_LOOPED
Event.what parameter for EVENT_AUDIO event indicating that a stream has looped.

See Also:
Constant Field Values

WHAT_POSITION_REACHED

static final int WHAT_POSITION_REACHED
Event.what parameter for EVENT_AUDIO event indicating that a position has been reached.

See Also:
Constant Field Values

WHAT_VIDEO_STOPPED

static final int WHAT_VIDEO_STOPPED
Event.what parameter for EVENT_VIDEO.

Since:
4.5
See Also:
Constant Field Values

WHAT_VIDEO_LOOPED

static final int WHAT_VIDEO_LOOPED
Event.what parameter for EVENT_VIDEO.

Since:
4.5
See Also:
Constant Field Values

WHAT_VIDEO_POSITION_REACHED

static final int WHAT_VIDEO_POSITION_REACHED
Event.what parameter for EVENT_VIDEO.

Since:
4.5
See Also:
Constant Field Values

WHAT_CMUX_BAD_CHECKSUM

static final int WHAT_CMUX_BAD_CHECKSUM
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_RADIO_WONT_WAKE

static final int WHAT_RADIO_WONT_WAKE
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_RADIO_IGNORED_LOW_POWER_REQUEST

static final int WHAT_RADIO_IGNORED_LOW_POWER_REQUEST
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_UART_OVERRUN

static final int WHAT_UART_OVERRUN
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_UART_FRAMING_ERROR

static final int WHAT_UART_FRAMING_ERROR
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_UART_BREAK

static final int WHAT_UART_BREAK
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_RADIO_RESET

static final int WHAT_RADIO_RESET
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_CHANNEL_WRITE_TIMEOUT

static final int WHAT_CHANNEL_WRITE_TIMEOUT
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_NETWORK_IP_DEAD

static final int WHAT_NETWORK_IP_DEAD
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_STAR_99_POUND_ERROR

static final int WHAT_STAR_99_POUND_ERROR
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_AT_COMMAND_TIMEOUT

static final int WHAT_AT_COMMAND_TIMEOUT
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_PDP_ACTIVATE_TIMEOUT

static final int WHAT_PDP_ACTIVATE_TIMEOUT
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_RADIO_FIRMWARE_FIXED

static final int WHAT_RADIO_FIRMWARE_FIXED
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_SIM_HARDWARE_ERROR

static final int WHAT_SIM_HARDWARE_ERROR
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_SIM_INIT_TIMEOUT

static final int WHAT_SIM_INIT_TIMEOUT
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_NVMEM_ERASED

static final int WHAT_NVMEM_ERASED
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_NETWORK_PERSONALIZATION_RESTORED

static final int WHAT_NETWORK_PERSONALIZATION_RESTORED
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_NETWORK_PERSONALIZATION_SAVED

static final int WHAT_NETWORK_PERSONALIZATION_SAVED
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_SERIAL_WRITE_TIMEOUT

static final int WHAT_SERIAL_WRITE_TIMEOUT
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_OUT_OF_BUFFERS

static final int WHAT_OUT_OF_BUFFERS
Deprecated. For internal use only.
See Also:
Constant Field Values

WHAT_NETWORK_PDP_DEACTIVATED

static final int WHAT_NETWORK_PDP_DEACTIVATED
Deprecated. For internal use only.
Since:
4.0
See Also:
Constant Field Values

WHAT_LOW_DATA

static final int WHAT_LOW_DATA
with EVENT_LOW_MEMORY, means that the system is running low on data space (memory per se)

See Also:
Constant Field Values

WHAT_LOW_HANDLES

static final int WHAT_LOW_HANDLES
with EVENT_LOW_MEMORY, means that the system is running low on handles

See Also:
Constant Field Values

WHAT_SPEAKER_INTERNAL

static final int WHAT_SPEAKER_INTERNAL
With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the internal speaker.

See Also:
Constant Field Values

WHAT_SPEAKER_HEADSET

static final int WHAT_SPEAKER_HEADSET
With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the headset.

See Also:
Constant Field Values

WHAT_SPEAKER_SPEAKERPHONE

static final int WHAT_SPEAKER_SPEAKERPHONE
With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the speaker phone.

See Also:
Constant Field Values

WHAT_SPEAKER_BLUETOOTH

static final int WHAT_SPEAKER_BLUETOOTH
With EVENT_ACTIVE_SPEAKER_CHANGED, this indicates the currently active speaker is the bluetooth headset.

See Also:
Constant Field Values

WHAT_BATTERY_COVER_REMOVED

static final int WHAT_BATTERY_COVER_REMOVED
with EVENT_BATTERY_COVER_STATE_CHANGED, this indicates the state of the battery cover.

See Also:
Constant Field Values

WHAT_BATTERY_COVER_REPLACED

static final int WHAT_BATTERY_COVER_REPLACED
with EVENT_BATTERY_COVER_STATE_CHANGED, this indicates the state of the battery cover.

See Also:
Constant Field Values

WHAT_BLUETOOTH_OFF

static final int WHAT_BLUETOOTH_OFF
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
With EVENT_BLUETOOTH_STATE_CHANGED, this indicates the state of the device's bluetooth radio.

See Also:
Constant Field Values

WHAT_BLUETOOTH_ON

static final int WHAT_BLUETOOTH_ON
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
With EVENT_BLUETOOTH_STATE_CHANGED, this indicates the state of the device's bluetooth radio.

See Also:
Constant Field Values

DEVICE_META_NONE

static final int DEVICE_META_NONE
Specifies that there are currently no active Meta keys. Event.what field for EVENT_KEY_META.

See Also:
Constant Field Values

DEVICE_META_CAPS

static final int DEVICE_META_CAPS
The Caps meta key is currently active. Event.what field for EVENT_KEY_META.

See Also:
Constant Field Values

DEVICE_META_ALT

static final int DEVICE_META_ALT
The Alt meta key is currently active. Event.what field for EVENT_KEY_META.

See Also:
Constant Field Values

DEVICE_META_CAPS_LOCKED

static final int DEVICE_META_CAPS_LOCKED
The Caps key is currently locked. Event.what field for EVENT_KEY_META.

See Also:
Constant Field Values

DEVICE_META_ALT_LOCKED

static final int DEVICE_META_ALT_LOCKED
The Alt key is currently locked. Event.what field for EVENT_KEY_META.

See Also:
Constant Field Values

DEVICE_META_SHIFT_ALT

static final int DEVICE_META_SHIFT_ALT
The Shift-Alt state is currently active. Event.what field for EVENT_KEY_META.

See Also:
Constant Field Values

DEVICE_WHEEL

static final int DEVICE_WHEEL

Device wheel has been pushed up or pulled down.

Sent to View.eventWidgetUp(int, danger.app.Event) when the wheel is pushed up and to View.eventWidgetDown(int, danger.app.Event) when the wheel is pulled down.

Note that no current devices have a wheel; they have a trackball instead. Therefore, this event is normally not sent. Trackball movement results in DEVICE_NAVIGATION instead.

what value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_WHEEL_BUTTON

static final int DEVICE_WHEEL_BUTTON
Device trackball has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the trackball is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_BUTTON_BACK

static final int DEVICE_BUTTON_BACK
Device Back button has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the back button is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_BUTTON_MENU

static final int DEVICE_BUTTON_MENU
Device menu button has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the menu button is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_LEFT

static final int DEVICE_ARROW_LEFT
Left arrow key has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the left arrow key is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_UP

static final int DEVICE_ARROW_UP
Up arrow key has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the up arrow key is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_RIGHT

static final int DEVICE_ARROW_RIGHT
Right arrow key has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the right arrow key is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_DOWN

static final int DEVICE_ARROW_DOWN
Down arrow key has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the down arrow key is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_BUTTON_JUMP

static final int DEVICE_BUTTON_JUMP
Device Jump button has been pressed. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the jump button is pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_MULTIPLE_WHEEL

static final int DEVICE_MULTIPLE_WHEEL
Device wheel has been held up or down. Passed to View.eventWidgetUp(int, danger.app.Event) when wheel is pushed up and to View.eventWidgetDown(int, danger.app.Event) when wheel is pulled down. This is used for auto-repeat functionality. The Event.what parameter of the call will be relative to the amount of time the wheel was held in the up or down position.

Note that no current devices have a wheel; they have a trackball instead. Therefore, this event is normally not sent. Trackball movement results in DEVICE_NAVIGATION instead.

See Also:
Constant Field Values

DEVICE_WHEEL_PAGE_UP

static final int DEVICE_WHEEL_PAGE_UP
Page up event for controls with large scrollable areas. Passed to View.eventWidgetUp(int, danger.app.Event) when trackball is rolled up while the MENU button is held down.

See Also:
Constant Field Values

DEVICE_WHEEL_PAGE_DOWN

static final int DEVICE_WHEEL_PAGE_DOWN
Page down event for controls with large scrollable areas. Passed to View.eventWidgetDown(int, danger.app.Event) when trackball is rolled down while the MENU button is held down.

See Also:
Constant Field Values

DEVICE_BUTTON_SEND

static final int DEVICE_BUTTON_SEND
Send key has been pressed "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_BUTTON_END

static final int DEVICE_BUTTON_END
End key has been pressed "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_BUTTON_VOLUME_UP

static final int DEVICE_BUTTON_VOLUME_UP
Activity on VOL+ button "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_BUTTON_VOLUME_DOWN

static final int DEVICE_BUTTON_VOLUME_DOWN
Activity on VOL- button "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_BUTTON_LEFT_SHOULDER

static final int DEVICE_BUTTON_LEFT_SHOULDER
Activity on left shoulder button. "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_BUTTON_RIGHT_SHOULDER

static final int DEVICE_BUTTON_RIGHT_SHOULDER
Activity on right shoulder button. "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_BUTTON_DONE

static final int DEVICE_BUTTON_DONE
Deprecated. This event is never actually sent. Use DEVICE_BUTTON_BACK instead.
Activity on DONE button

See Also:
Constant Field Values

DEVICE_BUTTON_CANCEL

static final int DEVICE_BUTTON_CANCEL
Activity on CANCEL button "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_EXT_HOOK_DOWN

static final int DEVICE_EXT_HOOK_DOWN
The button on the earphone cable has been pressed. "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_EXT_HOOK_UP

static final int DEVICE_EXT_HOOK_UP
The button on the earphone cable has been released. "what" value for EVENT_WIDGET_UP, EVENT_WIDGET_DOWN, and EVENT_WIDGET_HELD.

See Also:
Constant Field Values

DEVICE_ARROW_UP_LEFT

static final int DEVICE_ARROW_UP_LEFT
Up/left diagonal has been pressed on dpad. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the up/left diagonal has been pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_DOWN_LEFT

static final int DEVICE_ARROW_DOWN_LEFT
Down/left diagonal has been pressed on dpad. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the down/left diagonal has been pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_UP_RIGHT

static final int DEVICE_ARROW_UP_RIGHT
Up/right diagonal has been pressed on dpad. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the up/right diagonal has been pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_ARROW_DOWN_RIGHT

static final int DEVICE_ARROW_DOWN_RIGHT
Down/right diagonal has been pressed on dpad. Sent to View.eventWidgetUp(int, danger.app.Event) or View.eventWidgetDown(int, danger.app.Event) when the down/right diagonal has been pressed. If you want auto-repeat functionality, override View.eventWidgetDown(int, danger.app.Event). If you don't, receive the event through View.eventWidgetUp(int, danger.app.Event).

See Also:
Constant Field Values

DEVICE_NAVIGATION

static final int DEVICE_NAVIGATION

Trackball has been moved.

Sent to View.eventWidgetDown(int, danger.app.Event) when the user moves the trackball.

If the user moves the navigation device quickly, you will only receive one coalesced navigation event for the movement.

Use the methods Event.getHorizontalCount() and Event.getVerticalCount() to determine how far and in what direction the navigation device has been moved:

"what" value for EVENT_WIDGET_DOWN.

See Also:
Constant Field Values

WHAT_HEADSET_JACKED_IN

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.

See Also:
Constant Field Values

WHAT_HEADSET_JACKED_OUT

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.

See Also:
Constant Field Values

WHAT_CAMERA_JACKED_IN

static final int WHAT_CAMERA_JACKED_IN
Deprecated. No longer used.
See Also:
Constant Field Values

WHAT_CAMERA_JACKED_OUT

static final int WHAT_CAMERA_JACKED_OUT
Deprecated. No longer used.
See Also:
Constant Field Values

WHAT_HINGE_OPENED

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.

See Also:
Constant Field Values

WHAT_HINGE_CLOSED

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.

See Also:
Constant Field Values

WHAT_SYSTEM_LOADED

static final int WHAT_SYSTEM_LOADED
Deprecated. For internal use only.
See Also:
Constant Field Values

MESSAGE_GOTO_URL

static final int MESSAGE_GOTO_URL
Deprecated. Instead of handling this event directly, use Application.openURL(danger.net.URL).
See Also:
Constant Field Values

MESSAGE_GOTO_URL_IN_BACKGROUND

static final int MESSAGE_GOTO_URL_IN_BACKGROUND
Deprecated. Instead of handling this event directly, use Application.openURLInBackground(danger.net.URL).
Since:
3.0
See Also:
Constant Field Values

EVENT_MODIFIER_NONE

static final int EVENT_MODIFIER_NONE
Deprecated. Use EventModifier.NONE instead.
See Also:
Constant Field Values

EVENT_MODIFIER_CAPS

static final int EVENT_MODIFIER_CAPS
Deprecated. Use EventModifier.SHIFT instead.
See Also:
Constant Field Values

EVENT_MODIFIER_ALT

static final int EVENT_MODIFIER_ALT
Deprecated. Use EventModifier.ALT instead.
See Also:
Constant Field Values

EVENT_MODIFIER_SYM

static final int EVENT_MODIFIER_SYM
Deprecated. Use EventModifier.SYM instead.
See Also:
Constant Field Values

EVENT_MODIFIER_BACK_BUTTON

static final int EVENT_MODIFIER_BACK_BUTTON
Deprecated. Use EventModifier.BACK instead.
See Also:
Constant Field Values

EVENT_MODIFIER_MENU_BUTTON

static final int EVENT_MODIFIER_MENU_BUTTON
Deprecated. Use EventModifier.MENU instead.
See Also:
Constant Field Values

EVENT_MODIFIER_JUMP_BUTTON

static final int EVENT_MODIFIER_JUMP_BUTTON
Deprecated. Use EventModifier.JUMP instead.
See Also:
Constant Field Values

EVENT_MODIFIER_TRACKBALL

static final int EVENT_MODIFIER_TRACKBALL
Deprecated. Use EventModifier.TRACKBALL instead.
See Also:
Constant Field Values

EVENT_MODIFIER_WHEEL

static final int EVENT_MODIFIER_WHEEL
Deprecated. No longer supported.
See Also:
Constant Field Values

EVENT_MODIFIER_CANCEL_BUTTON

static final int EVENT_MODIFIER_CANCEL_BUTTON
Deprecated. Use EventModifier.CANCEL instead.
See Also:
Constant Field Values

RECORD_ADDED

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

See Also:
Constant Field Values

RECORD_REMOVED

static final int RECORD_REMOVED
A record was deleted from the gallery

See Also:
Constant Field Values

RECORD_PENDING

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

See Also:
Constant Field Values

SORT_CHANGED

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

See Also:
Constant Field Values

BITMAP_DECODED

static final int BITMAP_DECODED
A PhotoRecord's decoded bitmap is now ready to be viewed

See Also:
Constant Field Values

SELECTION_CHANGED

static final int SELECTION_CHANGED
The state of a record being selected has changed.

See Also:
Constant Field Values

NAME_CHANGED

static final int NAME_CHANGED
The name of a photo record has changed.

See Also:
Constant Field Values

UID_CHANGED

static final int UID_CHANGED
The UID of this record has changed.

See Also:
Constant Field Values

RECORD_UPDATED

static final int RECORD_UPDATED
A record has been updated from the service.

See Also:
Constant Field Values

RECORD_ROTATED

static final int RECORD_ROTATED
A record has been rotated on the device.

See Also:
Constant Field Values

WHAT_SIM_DEPARTS

static final int WHAT_SIM_DEPARTS
Used with EVENT_SIM_PRESENCE to note that a SIM card has been removed. Note that current hardware does not support this.

See Also:
Constant Field Values

WHAT_SIM_ARRIVES

static final int WHAT_SIM_ARRIVES
Used with EVENT_SIM_PRESENCE to note that a SIM card has been inserted. Note that current hardware does not support this.

See Also:
Constant Field Values

EVENT_MIDLET_MESSAGE

static final int EVENT_MIDLET_MESSAGE
events forwarded by the midlet ExtensionManager for various danger events

Since:
4.0
See Also:
Constant Field Values

EVENT_MIDLET_AUTO_SYNC_DONE

static final int EVENT_MIDLET_AUTO_SYNC_DONE
Since:
4.0
See Also:
Constant Field Values

EVENT_MIDLET_DATASTORE_RESTORED

static final int EVENT_MIDLET_DATASTORE_RESTORED
Since:
4.0
See Also:
Constant Field Values

EVENT_COPY_FROM_ADDRESS_BOOK

static final int EVENT_COPY_FROM_ADDRESS_BOOK
when sent by the context menu to an EditText instance, a mini address list is opened when sent by a MiniAddressBook instance, the selected contact's phone number is inserted in the EditText.

Since:
4.0
See Also:
Constant Field Values

EVENT_DATE_CHANGED

static final int EVENT_DATE_CHANGED
This event gets sent when the date has changed. This most commonly happens when the clock has struck midnight, but can also happen if the date has been changed from the service.

Since:
4.5
See Also:
Constant Field Values

EVENT_VIDEO_RECORD

static final int EVENT_VIDEO_RECORD
Sent to the observers of a VideoRecord if anything about it changes (its file is renamed, etc.)

Since:
4.5
See Also:
Constant Field Values

PENDING_STATUS_VIEW_SIZE_CHANGED

static final int PENDING_STATUS_VIEW_SIZE_CHANGED
Sent to the PendingStatusView's listener when its size changes.

Since:
4.5
See Also:
Constant Field Values

PENDING_STATUS_VIEW_BITMAP_COUNT_CHANGED

static final int PENDING_STATUS_VIEW_BITMAP_COUNT_CHANGED
Sent to the PendingStatusView's listener when the number of pending status icons has changed.

Since:
4.5
See Also:
Constant Field Values

EVENT_FONT_MENU_ITEM_SELECTED

static final int EVENT_FONT_MENU_ITEM_SELECTED
Sent when the user selects a font from a menu created by Font.getFontMenu(danger.app.Listener) or Font.addFontsToMenu(danger.ui.Menu, danger.app.Listener).

Since:
4.5
See Also:
Constant Field Values

EVENT_CONTACTS_HAVE_SYNCED

static final int EVENT_CONTACTS_HAVE_SYNCED
Sent after all contact data records have synced from the service after a hard reset. Use Application.registerForEvent(danger.app.Listener, int) to register to receive this event.

Since:
4.5
See Also:
Constant Field Values