Java Reference
In-Depth Information
L ISTING 5.2 The Application Descriptor for Our Application
MIDlet-1: amid, /splash.png, com.marinilli.b2.c5.AMIDLet
MIDlet-Jar-Size: 7296
MIDlet-Jar-URL: amid.jar
MIDlet-Name: AMIDLet
MIDlet-Vendor: Maurosystems
MIDlet-Version: 1.0
The application class source is shown in Listing 5.3.
L ISTING 5.3 The AMIDlet Class.
package com.marinilli.b2.c5;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
/**
* Chapter 5 - A Sample MIDlet
*
*
* @author Mauro Marinilli
* @version 1.0
*/
public class AMIDLet extends MIDlet implements CommandListener{
private List mainList;
private MIDLicenseManager licenseManager;
/**
* Constructor
*/
public AMIDLet() {
licenseManager = new MIDLicenseManager(this);
}
/**
* Invoked when the MIDlet is paused
*/
protected void pauseApp() {
}
/**
* for cleaning up resources
*/
protected void destroyApp(boolean parm1) throws MIDletStateChangeException {
licenseManager = null;
Search WWH ::




Custom Search