3. Quick Start

To make sure you get off to a flying start, this chapter describes a few simple parts of MIDP so that you can get something running right away. You’ll also have a basic scaffolding upon which to build your later knowledge. Don’t worry if it doesn’t all make sense right away. Everything in this chapter is covered in more detail later in the book.

Fire up your development tool of choice and type as you go along. By the end of this chapter you will have your first running MIDlet.

3.1. Make Something That Runs

Phones and other MIDP devices know how to run MIDlets. A MIDlet is an application. To make your own MIDlet, you need to define a class that extends javax.microedition.midlet.MIDlet.

MIDlet has three methods that must be defined ...

Get Kicking Butt with MIDP and MSA: Creating Great Mobile Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.