MIDlet Project
This commit is contained in:
0
build/compiled/.nomedia
Normal file
0
build/compiled/.nomedia
Normal file
7
build/manifest.mf
Normal file
7
build/manifest.mf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
MIDlet-1: [ MIDlet Name ],[ MIDlet Icon ],[ MIDlet Class ]
|
||||||
|
MIDlet-Name: [ MIDlet Name ]
|
||||||
|
MIDlet-Vendor: [ Your Name ]
|
||||||
|
MIDlet-Version: [ Version ]
|
||||||
|
MicroEdition-Configuration: CLDC-1.0
|
||||||
|
MicroEdition-Profile: MIDP-2.0
|
||||||
|
MIDlet-Description: [ Description ]
|
||||||
0
build/preverified/.nomedia
Normal file
0
build/preverified/.nomedia
Normal file
0
dist/.nomedia
vendored
Normal file
0
dist/.nomedia
vendored
Normal file
12
nbproject/project.properties
Normal file
12
nbproject/project.properties
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
name=[ Project Name ]
|
||||||
|
deployment.counter=2
|
||||||
|
app-version.autoincrement=true
|
||||||
|
deployment.number=0.1
|
||||||
|
dist.jad=[ JAD filename ].jad
|
||||||
|
dist.jar=[ JAR filename ].jar
|
||||||
|
jar.compress=true
|
||||||
|
javac.debug=false
|
||||||
|
javac.optimize=false
|
||||||
|
javac.encoding=windows-1251
|
||||||
|
manifest.midlets=MIDlet-1: [ MIDlet Name ],[ MIDlet Icon ],[ MIDlet Class ]\n
|
||||||
|
manifest.others=MIDlet-Name: [ MIDlet Name ]\nMIDlet-Vendor: [ Your Name ]\nMIDlet-Version: [ Version ]\nMicroEdition-Configuration: CLDC-1.0\nMicroEdition-Profile: MIDP-2.0\nMIDlet-Description: [ Description ]\n
|
||||||
23
src/Example.java
Normal file
23
src/Example.java
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
import javax.microedition.lcdui.*;
|
||||||
|
import javax.microedition.midlet.MIDlet;
|
||||||
|
|
||||||
|
public class OpenTTY extends MIDlet implements CommandListener {
|
||||||
|
private Form screen = new Form("Example MIDlet");
|
||||||
|
private Command exit = new Command("Exit", Command.EXIT, 1);
|
||||||
|
private Display display = Display.getDisplay(this);
|
||||||
|
|
||||||
|
public void startApp() {
|
||||||
|
screen.append("This is a MIDlet example!");
|
||||||
|
screen.addCommand(exit);
|
||||||
|
screen.setCommandListener(this);
|
||||||
|
display.setCurrent(screen);
|
||||||
|
}
|
||||||
|
public void pauseApp() { }
|
||||||
|
public void destroyApp(boolean unconditional) { notifyDestroyed(); }
|
||||||
|
|
||||||
|
public void commandAction(Command c, Displayable d) {
|
||||||
|
if (c == exit) {
|
||||||
|
destroyApp();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user