Sun SPOT First Post

/ Published in: Java
Save to your folder(s)

When you write an Application for a Sun SPOT you are at the very least writing something called a in javax.microedition.midlet.MIDlet. This may look familiar to people who have done J2ME development.

Copy this code and paste it in your HTML
  1. public class FirstMIDlet extends MIDlet {
  3. protected void startApp() throws MIDletStateChangeException {
  4. // the guts/essence of your MIDlet here
  5. }
  7. protected void pauseApp() {}
  9. protected void destroyApp(boolean arg0) throws MIDletStateChangeException {}
  11. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.