• Post Reply Bookmark Topic Watch Topic
  • New Topic

System.exit()  RSS feed

 
Koh Khai Huat
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i would like to know how to call the System.exit() in the Midle program.....

Please reply me asap if anyone know of any example to do setFrameSequence please e-mail me at "koh_jaosn_616@hotmail.com" thank you

regards,
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not call System.exit() in a MIDlet. MIDP 2.0 specifies that this will throw a SecurityException ... (MIDP 2.0 specs, page 42)

You must use MIDlet.notifyDestroyed() instead ...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!