
Chapter 3
Examining Device Property Files
41
alert.<
alert_type
>.sound = <
sound_file
>
where the possible values of <
alert_type
> are as defined by MIDP specification as
follows:
If no sound file is defined (no alert-specific sound and no default sound) for a
particular alert, the emulator does not play the sound and the corresponding MIDP
API method
AlertType.playSound()
method returns the value false.
The Emulator supports all sound file formats currently supported by JDK1.4:
■
Audio file formats: AIFF, AU and WAV
■
Music file formats: MIDI Type 0, MIDI Type 1, and Rich Music Format (RMF)
■
Sound formats: 8-bit and 16-bit audio data, in mono and stereo, with sample
rates from 8 kHz to 48 kHz
■
Linear, A-law, and mu-law encoded data in any of the supported audio file
formats
Device Software Capabilities
The Default Emulator in the J2ME Wireless Toolkit enables you to define device
emulations with additional capabilities that are not required by the MIDP
specification. Specifically,
■
You can specify a default locale.
■
You can specify what character encodings are available in the device emulation.
■
You can disallow use of transparent images in the device emulation.
This section describes how to use these options.
TABLE 4
Alert Type Values
Alert Type
Description
info
Typically provides non-threatening information to the user.
error
Alerts the user to an erroneous operation.
warning
Warns the user of a potentially dangerous operation.
confirmation
Confirms user actions
alarm
Alerts the user to an event for which the user has previously
requested to be notified
Summary of Contents for Computer Accessories
Page 6: ...vi Wireless Toolkit Basic Customization Guide December 2003 ...
Page 8: ...viii Wireless Toolkit Basic Customization Guide December 2003 ...
Page 10: ...x Wireless Toolkit Basic Customization Guide December 2003 ...
Page 18: ...4 Wireless Toolkit Basic Customization Guide December 2003 ...
Page 58: ...44 Wireless Toolkit Basic Customization Guide December 2003 ...
Page 72: ...58 Wireless Toolkit Basic Customization Guide December 2003 ...
Page 74: ...60 Wireless Toolkit Basic Customization Guide December 2003 ...
Page 77: ...Index 63 device property files 1 WMA messages customizing 59 ...
Page 78: ...64 Wireless Toolkit Basic Customization Guide December 2003 ...