J2ME for Palm Speaker: Chen-Nien Tsai Adviser: Kai-Wei Ke.

Slides:



Advertisements
Similar presentations
MIDP Mobile Information Device Profile Johnny Yau CIS 642 Prof. Insup Lee.
Advertisements

Pengantar Teknologi Mobile 12
Introduction of J2ME Mobile solutions. Overview What is J2ME. How does J2ME work? Java J2ME Carriers and Products. The Two Configuration of J2ME. Profiles.
J2ME 25 July Overview  What is J2ME?  The CLDC and CDC configurations  MIDP and MIDlets  Development Tools  Demonstrations.
Writing Your First MIDlet Running JAVA on a Cell Phone Jon A. Batcheller January 27, 2004.
Introduction to Java 2 Micro Edition Mark Balbes, Ph.D. Senior Software Engineer Jeff Brown Senior Software Engineer.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 10 Java for MIDs Rob Pooley
Quality Assurance and Testing of J2ME Programs for Mobiles Phones.
Developing an Application with J2ME Technology Scott Palmer, Nat Panchee, Judy Sullivan, Karen Thabet, Sten Westgard.
J2ME RMI 1 Java 2 Platform, Micro Edition Implementation of J2ME RMI Application Farooq Sheikh.
Interactive Visual System By Arthur Evans, John Sikorski, and Patricia Thomas.
Introduction to Java Programming, 4E
Introduction to Mobility Java Technology Mobile and Wireless Networks.
Developing Software for Wireless Devices
J2ME Prepared by: - Gaery- Ronny - Alan- Andy. Why Technology for Mobile Devices? The nature of wireless devices is changing Old devices: All the software.
PDA Programming Using J2ME Presenter :涂俊凱 Date : 2003/4/8.
Making Cell Phone Games An Overview Ray Ratelis Guild Software, Inc.
Developing J2ME Applications Mobile and Wireless Networks.
The 21th century Repairman Agenda Introduction J2EE J2ME Demonstration.
Cosc 4730 Phone Programming in Java An Introduction.
Java Platform, Micro Edition (J2ME)
Java 2 Platform, Micro Edition (J2ME) By Xiaorong Wang.
SM3121 Software Technology Mark Green School of Creative Media.
J2ME and WAP Technologies CSCI – Independent Study Fall 2002 Presented by: Kashif Syed.
J2ME Programming. 2 Recommended Books Programming Wireless Devices with the Java2 Platform, Micro Second Edition (Paperback) by Roger Riggs (Editor),
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
J2ME -Kushal Modi(09BIT056).
Topics on KVM Presented By Xiaozhou David Zhu. Topics covered Introduction Java2 Platform Micro Edition CLDC KVM.
Android Introduction Platform Overview.
EclipseME Java Micro Edition The Eclipse Way Craig Setera April 19, 2006.
J2ME Java for Mobile Environments Based on J2ME In A Nutshell, by Kim Topley, O’Reilly & Associates Inc., 2002, and Tetris by Alexei Patinov.
An Introduction to the Java ME Project Jens A Andersson.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 12 Using the KToolbar Rob Pooley
Platforms and tools for Web Services and Mobile Applications J2ME based Applications Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
Getting Started with JXTA for J2ME Advisor : Dr. Ching-Long Yeh Report : DI.2, 洪泰昌 ( ) Course: XML 文件管理.
Michael Brockway Advanced Applications Development in Java J2ME -- Introduction l Introduction / Overview l Java 2 Micro Edition n CLDC n MIDP l Examples.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 11 J2ME and MIDlets Rob Pooley
Mobile Applications with Java ME & BlackBerry. Overview Java ME –Networking –Databases Java ME and the BlackBerry –The BlackBerry wireless device –Converting.
Framework and application bytecode size CLDC MIDP kXML parser Utility classes Graphics Logic (MIDlet) Application Data (XML file)
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
Computer Science Wi-Fi App using J2ME and MVC Architecture Advisor : Dr. Chung-E Wang Department of Computer Science Sacramento State University Date:
J2ME Presented by May Sayed & Menna Hawash. Outline Introduction “Java Technology” Introduction “What is J2ME?” J2ME Architecture J2ME Core Concepts 
Java 2 Micro Edition (J2ME) and the world of java
1Basics of J2ME. 2 Objectives –Understand the different java API’s and how the mobile edition API’s fit in –Understand what a mobile configuration and.
실기기에 KVM Porting 기술 소개 5/26/2000 Junbom Pyo ZUVIX technology, Co.
Introduction to Java Programming with Forte Y. Daniel Liang.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 14 Various MIDlet examples Rob Pooley
8-January-2003cse ProjectOverview © 2003 University of Washington1 Project Overview CSE 403, Winter 2003 Software Engineering
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 19 MIDlet to Palm Rob Pooley
National Taiwan University Department of Computer Science and Information Engineering Introduction to Programming Design by C Algorithms and Computational.
Java 2 Platform, Micro Edition (J2ME)
1 Introduction to J2ME Outline MIDP Building J2ME Apps- Tool J2ME Wireless Toolkit Demo MIDlet Programming -- MIDlet Transition States -- Midlet Skeleton.
Copyright © 2010, Install OpenFlow Mininet 指導教授:王國禎 學生:洪維藩 國立交通大學資訊科學與工程研究所 行動計算與寬頻網路實驗室.
Mobile Programming Mobile Programming - Ordibehesht Ordibehesht 1390.
Introduction to Programming 1 1 2Introduction to Java.
Enhanced mobile services in Java enabled phones Björn Hjelt Sonera zed ltd Supervisor: Professor Jorma Jormakka.
Introduction to JAVA Programming
Introduction to Java Programming, 4E Y. Daniel Liang.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
Advance Computer Programming Market for Java ME The Java ME Platform – Java 2 Micro Edition (J2ME) combines a resource- constrained JVM and a set of Java.
Java N Amanquah.
Programming of Handheld and Mobile Devices
Wireless Instant Messaging Using J2ME
By Jeff Heaton An Overview of J2ME By Jeff Heaton
Java for Mobile Devices
Java History, Editions, Version Features
Presentation transcript:

J2ME for Palm Speaker: Chen-Nien Tsai Adviser: Kai-Wei Ke

2004/10/72 Outline Introduction to Java Java 2 Platform, Micro Edition Create a J2ME Application for Palm OS Demonstration Summary References

2004/10/73 Introduction to Java First commercial release was in Before Java was called Java, it original name was Oak, and it was developed as a part of the Green project at Sun. Why Java: Cross platform Secure Robust Object oriented

2004/10/74 Java 2 Platform (1/2) Java 2 Platform, Enterprise Edition (J2EE) Java 2 Platform, Standard Edition (J2SE) Java 2 Platform, Micro Edition (J2ME)

2004/10/75 Java 2 Platform (2/2)

2004/10/76 Java Compile and Runtime Environments

2004/10/77 Outline Introduction to Java Java 2 Platform, Micro Edition Create a J2ME Application for Palm OS Demonstration Summary References

2004/10/78 Java 2 Platform, Micro Edition Basic Concepts Organization of the J2ME Platform Configurations Profiles Mobile Information Device Profile (MIDP) MIDlet

2004/10/79 Basic Concepts J2ME platform adapts existing Java technology for handheld and embedded devices. J2ME is as much about removing unnecessary parts of J2SE (or J2EE) as it is about defining new classes to address the stricter limitations of small devices.

2004/10/710 Organization of the J2ME Platform Configuration Connected, Limited Device Configuration (CLDC) Connected Device Configuration (CDC) Profile Mobile Information Device Profile (MIDP) Personal Digital Assistant Profile (PDAP) Foundation Profile and others

2004/10/711 Configuration A configuration defines the basic J2ME runtime environment. (virtual machine and a set of core classes) Two configurations have been defined CLDC: KVM (Kilobytes VM), with some J2SE capabilities removed. CDC: CVM (Compact VM), with full J2SE capabilities.

2004/10/712 Profile A profile extends a configuration, provides classes that are geared towards specific uses of devices and provide functionality missing from the base configuration. application life-cycle user interface network connections persistence mechanisms, etc.

2004/10/713 Mobile Information Device Profile The Mobile Information Device Profile (MIDP) is the first and most mature J2ME profile. The words "Java 2 Platform, Micro Edition" were synonymous with MIDP. The Personal Digital Assistant Profile?

2004/10/714 MIDlet A Java application that can run on mobile devices. Two major files JAR (Java Archive file): contains Java classes, resource files, and manifest file. JAD (Java Application Descriptor): contains a predefined set of attributes that allows the device application management software to identify, retrieve, and install the MIDlets.

2004/10/715 MIDlet suite A grouping of MIDlets that can share resources at runtime.

2004/10/716 The MIDlet Life-Cycle Paused The MIDlet instance has been constructed and is inactive. Active The MIDlet is active. Destroyed The MIDlet has been terminated and is ready for reclamation by the garbage collector.

2004/10/717 Developing and Testing a MIDlet

2004/10/718 Outline Introduction to Java Java 2 Platform, Micro Edition Create a J2ME Application for Palm OS Demonstration Summary References

2004/10/719 Create a J2ME Application for Palm OS Software and tools you need J2SE SDK MIDP for Palm OS J2ME Wireless Toolkit Palm OS Simulator

2004/10/720 MIDP for Palm OS MIDP.prc in the PRCfiles directory, which is the application runtime environment that supports MIDP for Palm OS. Converter tool convert a MIDlet into a PRC (Palm Resource Code) file.

2004/10/721 J2ME Wireless Toolkit A development environment with a GUI. For compiling, packaging, and executing MIDP applications. It includes the emulation environments as well.

2004/10/722 Steps to create a J2ME application for Palm Create a MIDlet Build a MIDlet Convert a MIDlet into a PRC (Palm Resource Code) file Debugging and testing on palm simulator Run application on actual device (via HotSync)

2004/10/723 Outline Introduction to Java Java 2 Platform, Micro Edition Create a J2ME Application for Palm OS Demonstration Summary References

2004/10/724 Demonstration Wireless Toolkit Create, build, and run a MIDlet Palm Simulator Convert a MIDlet into a PRC file Install MIDP for Palm OS Run MIDlet Other examples

2004/10/725 Outline Introduction to Java Java 2 Platform, Micro Edition Create a J2ME Application for Palm OS Demonstration Summary References

2004/10/726 Summary Java 2 platform Concepts of J2ME Configuration and Profiles MIDP and MIDP for Palm The steps to create a J2ME application

2004/10/727 References (1/3) 『個人通訊服務軟體發展環境』研討會 李建誠 教授 元智大學通訊系 『 行動裝置之程式設計』 楊朝棟 副教授 東海大學資訊工程與科學系 Java2 platform A Brief History of the Green Project

2004/10/728 References (2/3) A Survey of J2ME Today tart/articles/survey/ tart/articles/survey/ MIDP for Palm OS 1.0: Developing Java Applications for Palm OS Devices p/articles/palm/ p/articles/palm/ Wireless Development Tutorial Part I p/articles/wtoolkit/ p/articles/wtoolkit/

2004/10/729 References (3/3) Wireless Development Tutorial Part II p/articles/tutorial2/ p/articles/tutorial2/ J2SE 5.0 in a Nutshell eases/j2se15/ eases/j2se15/ 驚濤駭浪中誕生的 Java al html al html

2004/10/730 Appendix Steps by steps Wireless Toolkit A example code Build and run a MIDlet Palm OS Simulator Install MIDP for Palm Convert a MIDlet into PRC file Run MIDlet

2004/10/731 Wireless Toolkit Example – HelloMIDlet.java import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class HelloMIDlet extends MIDlet implements CommandListener { private Form mMainForm; public HelloMIDlet() { mMainForm = new Form("HelloMIDlet"); mMainForm.append(new StringItem(null, "Hello, MIDP!")); mMainForm.addCommand(new Command("Exit", Command.EXIT, 0)); mMainForm.setCommandListener(this); } public void startApp() { Display.getDisplay(this).setCurrent(mMainForm); } public void pauseApp() {} public void destroyApp(boolean unconditional) {} public void commandAction(Command c, Displayable s) { notifyDestroyed(); }

2004/10/732 Wireless Toolkit Launch “K Toolbar”

2004/10/733 Wireless Toolkit Create a New Project (1/2) File  New Project…

2004/10/734 Wireless Toolkit Create a New Project (2/2) Use default setting

2004/10/735 Wireless Toolkit Create a New Project (2/2) Copy the source file (HelloMIDlet.java) to C:\WTK21\apps\HelloSuit\src

2004/10/736 Wireless Toolkit Build the project Project  Build

2004/10/737 Wireless Toolkit Run the project Project  Run

2004/10/738 Palm OS Simulator Launch the Simulator

2004/10/739 Palm OS Simulator Install MIDP for Palm Drag the “MIDP.prc” and drop on simulator window.

2004/10/740 Palm OS Simulator Convert a MIDP into PRC file (1/4) In WTK, Project  Package  Create Package

2004/10/741 Palm OS Simulator Convert a MIDP into PRC file (2/4) Execute “converter.bat”, which in the Converter directory. note: you need set JAVA_PATH.

2004/10/742 Palm OS Simulator Convert a MIDP into PRC file (3/4) File  Convert, then select the.jad file you just created by WTK. (in the bin directory)

2004/10/743 Palm OS Simulator Convert a MIDP into PRC file (4/4) If converting success, the PRC file will be created.

2004/10/744 Palm OS Simulator Run the MIDlet Drag and drop the PRC file you just created.