Java

Running Sample Application using Samsung SDK 1.1 for the Java ME Platform
Technical Docs Feb 11, 2009
1

Version 0.9,Draft




About This Article

This article will cover in brief about how to run a sample Java ME application using Samsung Software Development Kit (SDK) 1.1.


Scope:

This article is targeted for Java developers intended to develop Java ME applications (MIDlet). It assumes that Java Development Kit (JDK) and Samsung SDK 1.1 are installed on the user computer.


Abbreviations:

Java ME Java Micro Edition
CLDC Connection Limited Device Configuration
MIDP Mobile Information Device Profile
WMA Wireless Messaging  API







Introduction

Samsung SDK 1.1 can be used for developing, testing, debugging, and profiling Java ME applications. This article explains how to run WMADemo as sample Java ME application by showing how to open project, how to select Samsung emulators and how to run the WMADemo sample Java ME application using Samsung SDK.


Note: Running WMA Demo sample application is demonstrated by using Samsung SDK 1.1 here.



Running WMADemo using Samsung SDK 1.1

In order to run WMADemo Sample Application using Samsung SDK, follow the steps mentioned below:


Step 1: 
Go to Start > All Programs > Samsung SDK 1.1 for Java(TM) ME platform > KToolbar  to launch Samsung SDK as shown in Figure 1.
 

 


Step 2: 
Go to File > Open Project or click on the Open Project icon. "Open Project" dialog box appears showing list of sample projects in Samsung SDK. Select WMADemo project and click  Open Project  button as shown in Figure 2.
 

 


Step 3: 
Select Samsung-Devices from 'Platform' drop-down menu. Samsung Devices appear as shown in Figure 3. Select appropriate Samsung devices from the 'Devices' tab to run WMADemo sample application.
 

 


Step 4: 
To build the project, click on Build icon as shown in Figure 4.
 

 


Step 5: 
To run the project, click on Run icon as shown in Figure 5.
 

 


Step 6: 
After clicking Run icon, selected Samsung Device Emulator appears showing WMADemo as shown in Figure 6.
 

 


Step 7: 
Select SMS Receive from 'Select one to launch' then click Launch [Command] to launch the SMS Receive MIDlet as shown in Figure 7.
 

 


Step 8: 
Now the emulator is in listening mode for incoming (receiving) message on specific port as shown in figure 8.
 

 


Step 9: 
Repeat action from step 5 to open one more emulator for sending SMS. Click on Launch [Command] to start SMS Send MIDlet as shown in Figure 9.
 

 


Step 10: 
Type destination address of Receiving Emulator and click on OK [Command] as shown in Figure 10. Receiving Emulator is the one shown in Step 8. Emulator Address is displayed on top of the emulator Window. Each Emulator has a unique address that signifies the mobile number. E.g. '555 555 5555' is the address of Receiving Emulator here.
 

 


Step 11: 
Type in the message box and click on OK [Command] as shown in Figure 11.
 

 


Step 12: 
Click on Menu [Command] as shown in figure 12 then click Send [Command] as shown in Figure 13. This will send the message to the receiving emulator.
 

 

 

 

Step 13: 
Receiving Emulator as shown in Step 8 is waiting for the incoming message. On receiving message, it will display the received message and number of sending emulator as shown in Figure 14. E.g.'5555555556' is the Sending Emulator number here.
 

 


After understanding how to run WMADemo sample Java ME application using Samsung SDK, you are ready to develop your Java ME application using Samsung SDK. Please refer for more tutorials in Developing section under Knowledge Base.



Downloads

This article can also be downloaded in Word Document and PDF format. Click on the following link to download:

Running Sample Application using Samsung SDK 1.1


Revision history
REVISION HISTORY DATE
First update Feb 11, 2009
go to top