You Are Here:

Community: Wiki

 

Talk:How to create a confirmation dialog in Java ME

From Forum Nokia Wiki

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)



 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fJavaE5fVerifiedE5fE28PortuguE25C3E25AAsE29X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ