Java Reference
In-Depth Information
DoJa2.5oe consists of seven core packages (see Table 7.1). They are
very similar to the standard MIDP packages with the notable exception of
the more functional com.nttdocomo.ui package for GUI applications.
Table 7.1 DoJa2.5oe Core Packages
Package
Description
com.nttdocomo.lang
UnsupportedOperation and IllegalState exception
classes
com.nttdocomo.io
Connection classes and exceptions for OBEX and HTTP
Timers, events, encoders, and a phone utility class for making
calls
com.nttdocomo.util
URL encoder and decoder
com.nttdocomo.net
Classes for sending SMS messages and adding new entries
to the phonebook (although reading from the phonebook is
unsupported)
com.nttdocomo.system
Core widget classes for GUI development, sprite classes, and
another phone utility class exposing vibration and backlight
functionality
com.nttdocomo.ui
Camera class, allowing pictures and video to be taken using
the onboard camera
com.nttdocomo.device
7.3 I Love JAM
Every DoJa project has a predefined directory structure as shown in
Table 7.2. Although you haven't built anything yet, it is generated by
Eclipse or the DoJa toolkit when you create a new project.
Table 7.2 DoJa Project Directory Structure
Directory Description
bin
Holds the ADF file ( .jam ) and JAR executable
res
Location for any image, video or audio resources to be dis-
tributed with the application
sp
Location for the Scratchpad file
Source files location
src
In this section, we're concerned only with the Application Descriptor
File (ADF) located in the bin project subdirectory. The ADF is the heart
Search WWH ::




Custom Search