Developing J2ME Applications.ppt

上传人:赵齐羽 文档编号:374337 上传时间:2018-10-06 格式:PPT 页数:10 大小:148.50KB
下载 相关 举报
Developing J2ME Applications.ppt_第1页
第1页 / 共10页
Developing J2ME Applications.ppt_第2页
第2页 / 共10页
Developing J2ME Applications.ppt_第3页
第3页 / 共10页
Developing J2ME Applications.ppt_第4页
第4页 / 共10页
Developing J2ME Applications.ppt_第5页
第5页 / 共10页
亲,该文档总共10页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、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 Support one or more profiles Horizontal i

2、n 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, per

3、sistence mechanisms, etc. Defined through JCP Must go through compatibility tests,J2ME Architecture,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 ha

4、nd CLDC-Based Profiles Mobile Information Device Profile (MIDP) Support for cell phones and pagers,The J2ME Universe Today,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

5、 and pagers Write an application that displays the String “Hello, Small World!” Requires the environment; MIDP reference implementation http:/ Will run in the MIDP emulator,Tour of CLDC/MIDP,Packages Javax.microedition.io Javax.microedition.lcdui Javax.microedition.midlet Javax.microedtion.rms Conta

6、ins 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 J2M

7、E 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,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) ,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 教学课件 > 大学教育

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1