Professional Documents
Culture Documents
February 2015, - Prepared by Eyob Gebretisnae. Center of Information Technology & Scientific Computing
Lab One
A First Java Mobile Program (CLDC/MIDP)
Objective:
Compiling and running a simple Text Message on Suns Mobile phone Emulator
Right Click on Source Package then Click new and select MIDlet
Mobile Programming Laboratory Manual 1 Addis Ababa University, Institute of Technology,
February 2015, - Prepared by Eyob Gebretisnae. Center of Information Technology & Scientific Computing
On the coming dialog box write the MIDlet name MidletLab, and click Finsh
Then you will see the follwig code, and understand the life cycle of Java ME project
import javax.microedition.lcdui.*;
try{
img=Image.createImage("/test.jpg");
img1=Image.createImage("/watermark.jpg");
} catch(Exception e){
form.append(img);
form.append(img1);