Mobile Programming
-
I want to try a simple program with java for my Nokia cell phone. Is there anybody to help me?
Sourie
import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author Internet */ public class Midlet123 extends MIDlet implements CommandListener{ private Command Ok; private Display dis; private Form form; public Midlet123() { dis=Display.getDisplay(this); form=new Form("My First Middlet"); Ok=new Command("Exit",Command.OK, 1); form.setCommandListener(this); } public void startApp() { dis.setCurrent(form); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } public void commandAction(Command arg0, Displayable arg1) { if(arg0==Ok) { destroyApp(true); notifyDestroyed(); } } } :laugh: :laugh: ;P :laugh: ;P :laugh: