developing j2me applications n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Developing J2ME Applications PowerPoint Presentation
Download Presentation
Developing J2ME Applications

Loading in 2 Seconds...

play fullscreen
1 / 10

Developing J2ME Applications - PowerPoint PPT Presentation


  • 128 Views
  • Uploaded on

Developing J2ME Applications. Mobile and Wireless Networks. J2ME Architecture. Layers consisting of Profiles Configurations Virtual Machines Host Operating System. J2ME Architecture. Configurations They define the minimum Java platform for a set of common devices

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Developing J2ME Applications' - valiant


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
developing j2me applications

Developing J2ME Applications

Mobile and Wireless Networks

j2me architecture
J2ME Architecture
  • Layers consisting of
    • Profiles
    • Configurations
    • Virtual Machines
    • Host Operating System
j2me architecture1
J2ME Architecture
  • Configurations
    • They define the minimum Java platform for a set of common devices
    • Support one or more profiles
    • Horizontal in nature
    • Defined through Java Community Process (JCP)
    • Must go through compatibility tests
  • Profiles
    • Supplement the configuration to provide capabilities for a specific family of devices or specific industry segment
    • Provide flexibility while optimizing portability
    • Often provide UI, event handling, persistence mechanisms, etc.
    • Defined through JCP
    • Must go through compatibility tests
j2me architecture3
J2ME Architecture
  • J2ME Configurations
    • Connected Device Configuration (CDC)
    • Connected Limited Device Configuration (CLD)
    • Two design
      • CDC = things you plug into the wall
      • CLDC = things you hold in your hand
  • CLDC-Based Profiles
    • Mobile Information Device Profile (MIDP)
    • Support for cell phones and pagers
creating j2me applications
Creating J2ME Applications
  • Identify the devices
  • Identify the profiles supported by devices
  • Develop the Application
  • Using the MID profile, the application will target cell phones and pagers
  • Write an application that displays the String “Hello, Small World!”
  • Requires the environment; MIDP reference implementation http://java.sun.com/products/midp/
  • Will run in the MIDP emulator
tour of cldc midp
Tour of CLDC/MIDP
  • Packages
    • Javax.microedition.io
    • Javax.microedition.lcdui
    • Javax.microedition.midlet
    • Javax.microedtion.rms
  • Contains user interface widgets
    • Form, TextField, TextBox, DateField, List, Image, Gauge, Alert, Canvas, Graphics, Display
  • Event handling classes – Command and CommandListener
  • Two APIs, high and low
    • High level for GUI widgets, scrolling, etc.
    • Low level for graphics and fine-grained UI control
developing j2me wireless applications
Developing J2ME Wireless Applications
  • Use ktoolbar to create a project
  • Configure the Midlet
  • Build and Run the project
  • MIDlet class, the application-level class
  • Abstract, need to define methods
    • startApp()
    • pauseApp()
    • destroyApp(boolean unconditional)
sample code
Sample Code

import javax.microedition.lcdui.*;

import javax.microedition.midlet.*;

public class HiMIDlet extends MIDlet {

private TextBox textbox;

public HiMIDlet() {

textbox = new TextBox ("", "Hello World!", 20, 0);

}

public void startApp() {

Display.getDisplay(this).setCurrent(textbox);

}

public void pauseApp() {}

public void destroyApp(boolean unconditional) {}

}