This brief article demonstrates the use of confirmation dialogs in Java ME. The use of confirmation prompts requiring the user to confirm a system action is a common phenomenen in Java ME MIDlets. The article provides a code example demonstrating the use of the Alert class in Java ME as a confirmation dialog.
The code example shows how to add commands to an Alert to handle user input. The use of the commandAction class shows how user input is processed.
--Larry101 13:02, 12 September 2009 (UTC)
Level : Intermediate
In java script, there is a function like alert("").and it shows a confirmation dialog box with a button(e.g.,OK.).Same here in mobile development.This article has a function showConfirmation(), it has two arguments title and text. Title is for dialog box and text is the message for that dialog box.
Good use of alert class. It has a method addCommand and is used for adding a commands to a dialog box. This all important information with coding is useful in every mobile application.
--Vkmunjpara 20:39, 17 September 2009 (UTC)