O'Reilly logo

Java™ ME Game Programming, Second Edition by Ph.D. Martin J. Wells, Ph.D. John P. Flynt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The MIDlet Class

When you develop a MIDlet, you extend the class you create for your MIDlet from the MIDlet class, which you can find in the javax.microedition.midlet package. It is an abstract class, and in previous chapters you have seen several examples of how to extend classes from it. It provides what is generally referred to as a “profile” application, which means that while it supplies the basic services that characterize a MIDlet, you must implement the control mechanisms relating to the specific device you are working with. Profile services include those necessary for the MIDlet to start, pause, resume, and stop. Table 7.2 provides a list of the methods that supply these services.

Table 7.2. MIDlet Methods
MethodDescription
String getAppProperty(String ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required