I use Alert to display a message
and then set a Command to it....
it can run in J2ME simulator
but can't in 3650.....always said illgslStateExcep....
have any solution??
Alert al = new Alert("testing");
Command cmd = new Command("abc",Command.SCREEN,1);
Alerts do not support Commands and CommandListeners in MIDP-1.0. I suspect you are developing with the Wireless Toolkit 2.0 - this is the MIDP-2.0 toolkit, and contains new features that your phone will not support. Sun recomment WTK 1.0.4 for MIDP-1.0 development. CommandListeners are allowed on Alerts in MIDP-2.0.