买了个moto E680i智能手机,linux系统,支持java。于是打算写个程序玩玩。用的是eclipse me,jdk1.42,很简单的一个程序。代码很简单,经典的helloworld程序。 import javax.microedition.midlet.MIDlet; public class Hello extends MIDlet { public Hello() { protected void startApp() throws MIDletStateChangeException { } protected void pauseApp() { } protected void destroyApp(boolean arg0) throws MIDletStateChangeException { } }
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;
super();
// TODO Auto-generated constructor stub
Form form=new Form("Hello Moto!");
form.append("Hello to Moto's world!");
Display.getDisplay(this).setCurrent(form);
}
// TODO Auto-generated method stub
// TODO Auto-generated method stub
// TODO Auto-generated method stub