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 MIDlet...as 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 {
  2.  
  3. protected void startApp() throws MIDletStateChangeException {
  4. // the guts/essence of your MIDlet here
  5. }
  6.  
  7. protected void pauseApp() {}
  8.  
  9. protected void destroyApp(boolean arg0) throws MIDletStateChangeException {}
  10.  
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.