Prev | Current Page 76 | Next

Timothy J. Thompson, C Bala Kumar, and Paul Kline

"Bluetooth Application Programming with the Java APIs Essentials Edition"

The Motorola Java ME SDK for Motorola OS
Products is available at www.motodev.com. (This book utilized version
6.4 of the Java ME SDK for Motorola OS Products to test the code
examples.) The SDK provides support for device emulation and emulation
of the Bluetooth stack via Rococo Software??™s ImprontoTM Simulator.
Follow the instructions to install the Sun Java Wireless Toolkit,
Java ME SDK for Motorola OS Products, and the Impronto Simulator.
The instructions to install the Impronto Simulator are available via a
ReadMe.txt in the Impronto_Simulator folder in the Motorola SDK
installation directory.
3.3.2 Sample Application
Before introducing the details of JABWT, let??™s take a look at how simple it
is to get up and running with JABWT. A simple ??????Hello, World??™??™ application
follows. The HelloClient MIDlet locates a HelloServer MIDlet
and sends the text ??????Hello, World??™??™ to the server to be displayed by the
HelloServer on its screen.
To start the project, start the Sun Java Wireless Toolkit and create a
new project. Provide a project name and the name of the MIDlet class.
(See Table 3.1 for the project name and MIDlet class name for the sample
application.) After providing this information, make sure JSR-82 is
selected in the API Selection tab and press the ok button. After selecting
ok, a new project is created by the Wireless Toolkit.


Pages:
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88