To the experienced Java developer, J2ME (the Java 2 Micro Edition) looks just familiar enough to be tempting, but just different enough to warrant caution. J2ME in a Nutshellprovides the extra security you need when venturing into programming for cell phones, PDAs and other consumer electronic devices. It gives you the reference material you need for J2ME, together with a tutorial that leverages your existing knowledge and teaches you what is different about J2ME without boring you to tears with details you already know. J2ME in a Nutshell provides a solid, no-nonsense reference to the "alphabet soup" of micro edition programming, covering the CLDC, CDC, KVM and MIDP APIs. The book also includes tutorials for the CLDC, KVM, MIDP and MIDlets, MIDlet user interfaces, networking and storage, and advice on programming small handhelds. Combined with O'Reilly's classic quick reference to all the core micro-edition APIs, this is the one book that will take you from curiosity to code with no frustrating frills in between
Kim Topley has more than 25 years experience as a software developer and was one of the first people in the world to obtain the Sun Certified Java Developer qualification. He is a freelance Java developer based near London, England and is the author of Core JFC and Core Swing, from Prentice-Hall.
Preface Part I. Introduction to the Java 2 Micro Edition Platform API Chapter 1. Introduction What Is the J2ME Platform? J2ME Specifications J2ME and Other Java Platforms Chapter 2. The Connected Limited Device Configuration The CLDC Java Virtual Machine The CLDC Class Libraries KVM Debugging Advanced KVM Topics Chapter 3. The Mobile Information Device Profile and MIDlets MIDP Overview The MIDP Java Platform MIDlets and MIDlet Suites MIDlet Execution Environment and Lifecycle Developing MIDlets Delivery and Installation of MIDlets Chapter 4. MIDlet User Interfaces User Interface Overview The High-Level User Interface API Chapter 5. The Low-Level MIDlet User Interface API The Canvas Class Painting and the Graphics Class Graphics Attributes Drawing Lines and Arcs Translating the Graphics Origin A Simple Animation MIDlet The Graphics Clip Rendering Text Images Event Handling Multithreading and the User Interface Chapter 6. Wireless Java: Networking and Persistent Storage A Networking Architecture for Small Devices Sockets Datagrams HTTP Connections Persistent Storage Chapter 7. The Connected Device Configuration and Its Profiles The CDC Chapter 8. J2ME Command-Line Tools cvm: The Connected Device Configuration Virtual Machine kdp: The KVM Debug Proxy kvm: The Kilobyte Virtual Machine midp: The MID Profile Execution Environment emulator: The J2ME Wireless Toolkit Emulator preverify: The KVM Class Preverifier MakeMIDPApp: JAD to PRC Conversion Tool MEKeyTool: Public Key Certificate Management Tool Chapter 9. J2ME Programming Environments The J2ME Wireless Toolkit MIDP for PalmOS J2ME and Forte For Java Other Integrated Development Environments Part II. API Quick Reference How to Use This Quick Reference Chapter 10. J2ME Packages and Classes J2ME Packages J2SE Packages Not Present in J2ME J2ME Package Contents Chapter 11. The java.io Package Chapter 12. The java.lang Package Chapter 13. The java.util Package Chapter 14. The javax.microedition.io Package Chapter 15. The javax.microedition.lcdui Package Chapter 16. The x.microedition.midlet Package Chapter 17. The javax.microedition.rms Package Chapter 18. Class, Method, and Field Index Index