Beginning J2ME platform: from novice to professional by Sing Li; Jonathan Knudsen

By Sing Li; Jonathan Knudsen

Show description

Read or Download Beginning J2ME platform: from novice to professional PDF

Best programming: programming languages books

Advances in Bio-Mechanical Systems and Materials

This monograph provides the newest effects with regards to bio-mechanical platforms and fabrics. The bio-mechanical structures with which his e-book is worried are prostheses, implants, scientific operation robots and muscular re-training structures. To signify and layout such structures, a multi-disciplinary method is needed which consists of the classical disciplines of mechanical/materials engineering and biology and drugs.

Extra info for Beginning J2ME platform: from novice to professional

Sample text

Ant is a tool for serious developers. If you believe you’ve exhausted the possibilities of the J2ME Wireless Toolkit, Ant is probably the next tool you should learn. Ant provides considerable flexibility in structuring your build cycle and lets you easily automate tasks like generating documentation or packaging source code. com/techtopics/mobility/midp/articles/ant/. The code download for this book includes an Ant build script. A simplified version of the build script is shown in Listing 2-2. Listing 2-2.

The JAM will call methods in the MIDlet to signify transitions from one state to another. You can see these methods in Jargoneer—startApp(), pauseApp(), destroyApp(), and Jargoneer’s constructor are all part of the MIDlet life cycle. Generalized User Interface Jargoneer’s user-interface code may take you by surprise. Later on, we’ll spend several chapters on user interface. For now, the important thing to notice is how Jargoneer’s user interface is flexible enough to run on devices with different screen sizes and different input capabilities.

You can tell the JVM to run its garbage collector by calling gc(). On MIDP, if you try to call exit(), a SecurityException will be thrown; the application life cycle is managed entirely through the methods of the MIDlet class. The other two methods, totalMemory() and freeMemory(), allow you to examine the amount of memory that is available for your application’s data. Note that Runtime does not support running external processes with the exec() method. MIDlets cannot step outside the bounds of the JVM.

Download PDF sample

Rated 4.86 of 5 – based on 11 votes