How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 Table of contents 1. INTRODUCTION.................................................................................................................................................................... 4 2. JAVA IMPLEMENTATION ON THE NOKIA 9210 COMMUNICATOR .............................................................................. 4 3. DEVELOPMENT GUIDELINES...................................................................
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 Disclaimer: The software or the copyrighted document is provided "as is", without warranties of any kind, and specifically excluding all implied warranties, for example of merchantability, fitness for purpose, title and noninfringement.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 1. INTRODUCTION JavaTM language is a general-purpose, concurrent, class-based, object-oriented programming language. It is designed to be simple enough that many programmers can achieve fluency in the language. Java is related to C and C++ but is organized rather differently, with a number of aspects of C and C++ omitted and a few ideas from other languages included.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 programming language that can be included in an HTML page, much in the same way as an image is included.) • Getting more 3rd party software: the Nokia 9210 Communicator has enough power for pJava applications, at least for games and utilities. • Downloadable applets and applications: Java is a safe technology for it. A key feature of the current PC Internet industry is downloading the applications free of charge from the web.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 Screen size (resolution 640 x 200) should be taken into account. The developer should also notice that certain areas in the display make use of the screen. Figure 1 shows a typical screenshot of the Nokia 9210 Communicator display. The Indicator and Command Button Areas have two different sizes or they can be hidden. FIGURE 1. Typical view of the Nokia 9210 Communicator screen 3.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 3.4 Status Pane API The Status Pane API allows you to access Crystal's Status Pane (sometimes referred to as the Indicator Area). The Status Pane is dedicated to providing different kinds of important information such as connection, battery and field strength indicators. The API allows you to set the style (size) of the Status Pane.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 Figure 2 gives a general overview on how to develop applications for the Nokia 9210 Communicator. Basically it doesn't differ from writing Java code. Tools for running the application in the emulator or in the target device are included in the SDK. UID, application name, multi bitmap file Symbian platform .java Normal Java build process Java source files aifbuilder specific process javac .aif .app .
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 where the c:\jdk1.1.8\lib\classes\ folder contains Symbian classes. More information about classpath issues with the emulator can be found in the SDK documentation: Crystal V6 Edition for Java -> Java Developer's Guide for Crystal -> Java Development -> The default classpath. 4.1 The Source Code Below is the source code of the amazing Hello World application. The code should be copied to the file Helloworld.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 command makes an installation package of the files. During these processes the application also gets its own unique identifier (UID) and icons. Every Symbian EPOC application should have its own UID. This allows the operating system to distinguish files associated with that application from files with other applications. A UID is a 32-bit number, which you get as you need from Symbian (More info can be found on www.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 FIGURE 3. AIF Builder tool's starting screen The next step is to generate your own personal icons for the Helloworld application. The AIF Builder tool can be used as an icon editor. Press the DFRDs tab and then press the Edit button. Pressing the button opens an editor view which is shown in Figure 4. You can draw the icons for two resolutions: 25x20 and 64x50.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 FIGURE 4. Picture of AIF Icon Designer The DFRDs screen is shown in Figure 5. After saving the icon file you can write the file name with the correct path to the AIF Builder window (Name of MBM textbox). Remember to uncheck the Quartz box in the 'DFRDs to Generate for' box, as we are writing this application for the Crystal platform only. You should also write the path where the AIF Builder tool generates the files.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 FIGURE 5. AIF Builder tool's DFRDs screen After finishing filling these three pages in the AIF Builder tool you are ready to generate the files for the application. Just press the Generate button in the right bottom corner. If everything is set properly you should get a window like that shown below: In this case the SDK is not installed in the default directory.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 • • • • • • • • • Helloworld.java Helloworld.class Helloworld.txt Helloworld.aifb Helloworld.aif application Helloworld.mbm Helloworld.app Helloworld.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.1 application files to be copied to the right folder of the device are listed. The file Helloworld.pkg with added row numbers is listed below: 1 2 3 4 5 6 7 &EN #{"Helloworld"},(0x10001122),1,0,0,TYPE=SISAPP "Helloworld.aif"-"!:\system\apps\Helloworld\Helloworld.aif" "Helloworld.txt"-"!:\system\apps\Helloworld\Helloworld.txt" "Helloworld.mbm"-"!:\system\apps\Helloworld\Helloworld.mbm" "Helloworld.
How to develop JavaTM Applications for the Nokia 9210 Communicator Version 1.