Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview of J2ME Framework of Java Solution.

Similar presentations


Presentation on theme: "Overview of J2ME Framework of Java Solution."— Presentation transcript:

1 Overview of J2ME Framework of Java Solution

2 J2ME Software Layers 選擇性規範 Optional Packages Profiles 硬體最小規範
PDAP 選擇性規範 Optional Packages 應用程式規範 Profiles 硬體最小規範 Configurations 虛擬機器 Virtual Machine

3 Configurations 硬體最小規範分兩種 CDC (Connected Device Configuration)
連結式裝置規範 適用於記憶體與電源支援度較高的裝置 如: Set-top Box, Pocket PCs, Communicator CLDC (Connected Limited Device Configuration) 限制式連結式裝置規範 適用於記憶體與電源支援度較低的裝置 如: 手機, PDA, 呼叫器 目前有CLDC 1.0 與 CLDC1.1兩種版本

4 Configurations(cont’d)
Virtual Machine Devices CDC CVM (C Virtual Machine) Set-top Box, Pocket PCs, Communicator CLDC KVM (Kilobyte Virtual Machine) 行動電話 PDA 呼叫器

5 Profiles 應用程式規範 Mobile Information Device Profile (MIDP)
手機專用之應用程式規範 現有MIDP 1.0 與 MIDP 2.0 兩種版本 Foundation Profile Personal Profile RMI Profile Multimedia Profile Gaming Profile Personal Basis Profile

6 J2ME Software Layers Profiles 硬體最小規範 Configurations 虛擬機器
應用程式規範 Profiles 硬體最小規範 Configurations 虛擬機器 Virtual Machine CDC CLDC

7 JSR in J2ME JSR Title Description JSR 30/139 CLDC 1.0/1.1 硬體最小規範
MIDP 1.0/2.0 應用程式規範 JSR 75 PDA Optional Packages PDA選擇性套件 JSR 82 Java API for Bluetooth 藍芽傳輸 JSR 120/205 Wireless Messaging API 1.0/2.0 簡訊系統 JSR 135 Mobile Media API 多媒體 JSR 172 J2ME Web Services Web service JSR 177 Security and Trust Services API 安全與驗證 JSR 179 Location API for J2ME 衛星定位 JSR 184 Mobile 3D Graphics API for J2ME 手機3D繪圖 JSR 185 Java Technology for Wireless Industry JTWI工業標準

8 MIDlet, Mobile Information Device small program
First MIDlet MIDlet, Mobile Information Device small program 引入套件 import javax.microedition.midlet.*; 繼承抽象MIDlet類別 public class FirstMIDlet extends MIDlet 實作三個抽象方法 public void startApp() public void pauseApp() public void destroyApp(boolean)

9 First MIDlet See: FirstMIDlet.java 繼承抽象MIDlet類別 套件封裝 引入套件 建構子(不一定要有)
實作三個抽象方法

10 Lifecycle of MIDlet 程式啟始後, KVM自動呼叫建構子 然後進入Paused狀態
KVM自動呼叫startApp() 進入Active狀態 若有來電或按暫停鍵 KVM呼叫pauseApp() 進入Paused狀態 解除暫停, KVM呼叫startApp() 重新進入Active狀態 關閉程式, KVM呼叫destroyApp() 進入Destroyed狀態

11 See: HiSmallWorld.java
Display See: HiSmallWorld.java

12 See: CompulsiveMIDlet.java
Compulsive notifying See: CompulsiveMIDlet.java 強制狀態轉移

13 To Do After Class Read Chapter 2, 3, 4
Discuss your project with your teammates PS: Final list of teammates and project topic will be due on 2006/3/16 小組名單與題目於3/16前 給老師

14 Next Week... High-Level User Interface Display List TextBox Alert Form
TextField StringItem ChoiceGroup Spacer DateField Gauge ImageItem CustomItem


Download ppt "Overview of J2ME Framework of Java Solution."

Similar presentations


Ads by Google