| Reply | « Previous Thread | Next Thread » |
|
This simple visible code java under comes executed without no type of problem in J2ME emulator, to the contrary executed on finishes them (to Nokia 6600 CLDC 1,0 MIDP2.0) obtains the error "Application Closed. MIDP2.SystemAMS.DatabaseThread ", why ?
Thanks, Antonio Musarra /* * SystemProperties.java * * Created on 2 marzo 2004, 11.55 */ package mts.mobile.network; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * MIDlet per la visualizzazione delle informazione di sistema. * * @author Antonio Musarra <antonio.musarra@romcad.it> * @version 1.0 * * $Id$ */ public class SystemProperties extends MIDlet implements CommandListener { // private field private Display display; // Riferimento all'oggetto Display private Form fmMain; // Form principale // StringItem object private StringItem sysPropPlatform; // Microedition Platform private StringItem sysPropEncoding; // Microedition Encoding private StringItem sysPropConfigration; // Microedition Configurtation CLDC private StringItem sysPropProfile; // Microedition Profile MIDP private StringItem sysPropTotMemory; // Dev. Tot memory private StringItem sysPropFreeMemory; // Dev. Free memory // Runtime info Runtime rtime = Runtime.getRuntime(); // Command object private Command cmExit; // Constructor public SystemProperties() { display = Display.getDisplay(this); // Build Form, Testi e command sysPropPlatform = new StringItem("Microedition Platform : ", System.getProperty("microedition.platform")); sysPropEncoding = new StringItem("Microedition Encoding : ", System.getProperty("microedition.encoding")); sysPropConfigration = new StringItem("Microedition Conf. : ", System.getProperty("microedition.configuration")); sysPropProfile = new StringItem("Microedition Prof. : ", System.getProperty("microedition.profiles")); sysPropTotMemory = new StringItem("Device Total Memory : " + rtime.totalMemory(), ""); sysPropFreeMemory = new StringItem("Device Free Memory : " + rtime.freeMemory(), ""); cmExit = new Command("Exit", Command.EXIT, 1); fmMain = new Form("View System Properties"); fmMain.addCommand(cmExit); fmMain.append(sysPropPlatform); fmMain.append(sysPropEncoding); fmMain.append(sysPropConfigration); fmMain.append(sysPropProfile); fmMain.append(sysPropTotMemory); fmMain.append(sysPropFreeMemory); fmMain.setCommandListener(this); } public void startApp() { display.setCurrent(fmMain); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } public void commandAction(Command c, Displayable s) { if(c == cmExit) { destroyApp(false); notifyDestroyed(); } } } |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|