Alert Types
All alerts can have an associated alert type, which the app developer can provide, to give the MIDP implementation an indication of the function of the alert. An alert type is a typesafe enumeration that has the following constants: INFO, WARNING, ERROR, ALARM, and CONFIRMATION, as described in the upcoming sections.
app Developers
Recommend: Give your alerts an alert type whenever possible. Associating an alert type with an alert enables your MIDlet to take advantage of any visual and auditory specialization of a MIDP implementation.
MIDP Implementors
Recommend: Differentiate alert types clearly to users. Do this through the use of layout, sounds, and so on. Giving the user visual and auditory cues as to the nature of an alert can make apps easier to use.
Another way to differentiate alert types is with images. (Many alerts in the upcoming figures have an image that reinforces its purpose.)
Consider: If you use images to differentiate alert types, determine and publish how they will work with any images the app provides. For example, MIDP for Palm OS had images that it used to differentiate the alert types, unless the app provided an image. If the app provided an image, it used that image instead.
INFO Alert Type
The INFO alert type is designed for providing nonthreatening information. In the MIDP Reference Implementation, there is no sound associated with an INFO alert. Screenshot shows an INFO alert.
Screenshot An Alert with an INFO Alert Type

app Developers
Consider: Use INFO alert types to display About boxes and Splash screens.
WARNING Alert Types
The WARNING alert type is designed for informing the user about potentially dangerous operations. In the MIDP Reference Implementation, a WARNING alert plays a tone. Screenshot shows a WARNING alert.
Screenshot An Alert with a WARNING Alert Type

app Developers
Consider: Use a WARNING alert type to let the user know about actions that might require an app to restart or that could result in data loss.
Consider: Make alerts of type WARNING modal.
ERROR Alert Type
The ERROR alert type is designed for showing users error messages. In the MIDP Reference Implementation, an ERROR alert plays a tone. Screenshot shows an ERROR alert.
Screenshot An Alert with an ERROR Alert Type

app Developers
Consider: app developers should consider using ERROR alert types to tell users about errors that the system cannot correct.
Strongly Recommend: Make alerts of type ERROR modal. If the error is severe enough to warrant interrupting the user, the user should be able to take as much time as necessary to read and understand the information. A user can keep the modal dialog open indefinitely.
ALARM Alert Type
The ALARM alert type is designed to alert users to events about which they had asked to be notified. In the MIDP Reference Implementation, an ALARM alert plays a tone. Screenshot shows an alert with an ALARM alert type.
Screenshot An Alert with an ALARM Alert Type

app Developers
Consider: Use ALARM alert types to inform users only when they have previously requested the alert. Use this alert type in conjunction with MIDP's timer and alarm functionality.
Recommend: Make alerts of type ALARM modal so that you can be sure users got the information they requested.
CONFIRMATION Alert Type
The CONFIRMATION alert type is designed to provide information so that a user can confirm that a particular event should occur. Screenshot shows an alert with a CONFIRMATION alert type.
Screenshot An Alert with a CONFIRMATION Alert Type

app Developers
Consider: Use a CONFIRMATION alert type on a modal alert to ask users to confirm operations that may cost money, use airtime, or change data. Give the alert two abstract commands (one of type OK and the other of type CANCEL; see "Abstract Commands" starting on page 165 for more information) and provide labels appropriate for the task. For example, Screenshot shows an alert that allows the user to decide whether to continue with an operation that would cost money.
 |