/ Published in: Java
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public class FirstMIDlet extends MIDlet { protected void startApp() throws MIDletStateChangeException { // the guts/essence of your MIDlet here } protected void pauseApp() {} protected void destroyApp(boolean arg0) throws MIDletStateChangeException {} }