You Are Here:

Community: Developer Discussion Boards

#1 Old MIDP2 Error - 2004-03-02, 17:16

Join Date: Feb 2004
Posts: 1
amusarra
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia