-
Alert
Hi
2 Alert related questions :
1) Is there a way to create an Alert (or maybe I should choose another class ?) which has a simple "OK" or "Continue" option instead of the "dismiss" option ?
2) although I set a time out for the alert , the Alert closes only after the user presses the "dismiss" button ,
is there a way to change this ?
Code :
Alert alInfoMsg = new Alert("Alert",str,null,AlertType.INFO);
alInfoMsg.setTimeout(5000);
thanks & Best Regards
-
On which device you are trying? Becoz if you set the timeout for alert, the dismiss option wont be displayed in Nokia Phones. For your first question, you can add commands to any alert. On adding Commands to alert, the DISMISS_COMMAND is removed implicitly.
--Prashant
-