




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
北方民族大学毕业设计英文翻译系(部)名 称: 计算机科学与工程学院 学 生 姓 名: 专 业: 学 号: 指导教师姓名: 北方民族大学教务处制13目录Mobile application platform-J2ME profile31 what is the J2ME32 Whats New in the J2ME Wireless Toolkit 2.242.1 Mobile 3D Graphics:42.2 Multimedia Messaging:52.3 Bluetooth and OBEX:52.4 Wireless development kit(WTK):62.5 J2me digital signature :72.6 Local Files and Personal Information:7移动设备的应用平台J2ME简介91 什么是J2ME:92 J2ME Wireless Toolkit 2.2 新改进102.1移动 3D 图形:102.2多媒体通信:102.3蓝牙和 OBEX:112.4无线开发工具包(WTK):112.5 J2me数字签名:122.6本地文件和个人信息:12Mobile application platform-J2ME profile1 what is the J2MEJ2ME (Java 2 Micro Edition) is a Java 2 as an integral part of it with J2SE, J2EE said. According to Suns definition: J2ME is a highly optimized Java runtime environment, mainly for consumer electronics devices such as cellular phones and video phones, digital set-top boxes, car navigation systems and so on. J2ME technology in 1999, the JavaOne Developer Conference on the formal launch of the General Assembly, which will of the Java language and platform-independent features into a small electronic device that allows mobile wireless devices sharing between applications. J2ME in its design specifications, to follow a variety of devices to create a single development system is meaningless the basic principles. So first of all J2ME embedded devices generally divided into two types: One is the limited computing, power supply is also limited embedded devices (for example, PDA, cell phone); another kind of computing power is relatively better, And in the power supply is relatively sufficient for embedded devices (for example, air conditioners, refrigerators, TV set-top boxes (set-top box). Because these two types of embedded devices, Java is why the introduction of a concept called Configuration, and then the operation of the above features are limited, limited the power of the device embedded in the definition of Connected Limited Device Configuration (CLDC) specifications are; and the other one To standardize the types of devices are Connected Device Configuration (CDC) specifications. In other words, J2ME first of all embedded devices using the Configuration concept of separate into two kinds of abstract patterns. In fact, everyone here can be a Configuration for J2ME two types of specifications for embedded devices, which defines the specifications of these devices at least in line with the computing power and capacity of power supply, memory, and other norms Size, as well as set A set of these devices on the implementation of the Java program can be used by the type of library, these norms are defined by the type of library for the Java standard librarys core categories and sub-type device features the line The expansion of the library category. For example, on CLDC specifications, can support the core category for the library java.lang .*, java.io. *, java.util .*, and support the expansion of the category for the library java.microedition.io. *. A distinction between the two main Configuration after, J2ME and then in the definition of the concept of a Profile. Profile is a framework in the Configuration on the specifications. The reason why there is the concept of the Profile in order to more clearly separate the various areas of embedded Java devices, as well as how to develop the procedures they should have the function of what. Therefore Profile of the definition of embedded devices are very specific and related to the expansion of the types of libraries, and the Java program embedded in a variety of devices on a user interface that shows how the definition of the Profile is inside. Profile of the expansion of the definition of the type of library is based on the underlying Configuration within the definition of the core categories established by the library.2 Whats New in the J2ME Wireless Toolkit 2.2The award-winning J2ME Wireless Toolkit has become the de facto standard toolkit for developing applications for Java 2, Micro Edition (J2ME). Since its debut in 2000, the toolkit has evolved to keep pace with the rapidly changing face of mobile Java technology. Dont be misled by the small change in version number from 2.1. The new toolkit supports new optional APIs specified through the Java Community Process (JCP) in four vital areas: 3D graphics, multimedia messaging, Bluetooth networking,and data management.In this article Ill describe these new APIs and show you how theyre implemented in the toolkit. Before I do, take a moment to admire the updated DefaultColorPhone emulator skin. Since version 2.1, this skin has gotten a larger screen (320 x 240, or QVGA) and far more colors (4096 instead of 256). 2.1 Mobile 3D Graphics:JSR 184, the Mobile 3D Graphics API for J2ME (M3G), provides three-dimensional graphics functionality in a compact package thats appropriate for devices that support the most widely adopted J2ME software stack, the Connected, Limited Device Configuration (CLDC) and the Mobile Information Device Profile (MIDP). The API provides two APIs for displaying 3D content. The immediate mode API makes it possible for applications to create and manipulate 3D elements directly. On top of this layer is a scene graph API, also called retained mode, that makes it possible to load and display entire 3D scenes youve designed ahead of time. Applications may use whichever API is most appropriate, or a combination of retained mode and immediate mode. The JSR 184 specification also defines a file format for scene graphs, .m3g. The toolkits emulator fully supports JSR 184 and youll find several MIDlets that show off the APIs capabilities in the Demo3D project. Life3D demonstrates the use of immediate mode: PogoRoo is an interactive demonstration that features a bouncing kangaroo:Finally, retainedmode shows how to load and render a scene graph file: 2.2 Multimedia Messaging:The J2ME Wireless Toolkit has long supported JSR 120, version 1.1 of the Wireless Messaging API (WMA); the new release supports WMA 2.0 (JSR 205), which expands WMAs capabilities to include Multimedia Messaging. In the toolkit, messaging takes place in a simulated environment. If you run the emulator multiple times, applications on the emulators can communicate with each other, and you can use the toolkits handy WMA Console utility to exchange messages with the applications in the same environment. Messages may conform to any of three standard protocols: Short Message Service (SMS), Cell Broadcast Service (CBS), or - new in version 2.2 of the toolkit - Multimedia Messaging Service (MMS). You can address MMS messages and add any collection of files to the message. Furthermore, the network monitor now displays MMS messages that are sent or received by the emulator. 2.3 Bluetooth and OBEX:The J2ME Wireless Toolkit emulator supports JSR 82, the Java APIs for Bluetooth, which includes two independent APIs: The Bluetooth API provides an interface to Bluetooth wireless networking, including device discovery and data exchange. The OBEX API allows applications to use the Object Exchange (OBEX) protocol over Bluetooth or other communication channels. The toolkit allows you to develop and test applications that use Bluetooth technology even if you dont have any actual Bluetooth hardware. The toolkit simulates a Bluetooth environment, in which you can run multiple emulator instances that can discover each other and exchange data using the Bluetooth API. An example application, BluetoothDemo, shows how to transfer imagesfrom one emulator to another. The J2ME Wireless Toolkit implements OBEX transfer over simulated Bluetooth and infrared connections. The simulated infrared connection follows the IrDA standard defined by the Infrared Data Association. The toolkit simulates infrared transfers between multiple running emulators. You can configure the Bluetooth and OBEX environment using the Bluetooth/OBEX tab in the toolkit preferences. This controls such parameters as how long the emulator attempts to discover other devices in the simulated Bluetooth environment and the maximum packet size. See the toolkits Users Guide for more details. 2.4 Wireless development kit(WTK):WTK full name is from J2ME Wireless Toolkit - from Wireless development kit. This kit are designed to help developers simplified from j2me development process. Use one of the tools can develop with the Wireless Technology for Java (JSR 185, judge not JTWI standardizing compatible equipment running on j2me applications. The kit contains a full set of generation tool, practical procedures and equipment emulator. When writing to text so far can gain four versions, respectively is 1.0.4, 2.0, 2.1 and 2.2. Each version is including English, Japanese, simplified Chinese character, traditional Chinese four languages in the bag. Provide a WTK is from development kit. At present each big phone makers tend to pass their simplification and WTK disguised himself, and launch suitable products, like SonyEricsson, Nokia Developer s suit, etc., all belong to this type, And through Eclipse etc, JBuilder IDE, J2ME setups tools can be bound in these integrated development environment, further improve the efficiency of development. No matter which version WTK will include the following categories: Appdb directory: the RMS information from a database Apps directory: WTK own produce professional demo programs Bin directory: J2ME development tools executable files Docs directory: all kinds of help and documentation The lib directory: J2ME program libraries, Jar wrapped and control documents Session directory: performance monitoring conservation information Wtklib directory: JWTK main program and simulator appearance. 2.5 J2me digital signature :Get a certificate of the j2me jad files for signature. Here are some and autograph related need to pay attention to some problems. 1. Want to install signed the software, you must pass jad to install. We know the j2me program generator will have the jar jad and two files, in the ordinary circumstances we only need to install the jar file is ok. For example I would jar file via bluetooth to phone, install later. But if you want to through installed manually signed documents, will pass through jad to install, and ensure that jad and jar file is in the same directory. My way is through the data will be two files into mobile phone memory or covering the card, then through jad to install, this installation, good software is software that has signed. Wont have always annoying asking users are allowed to operate the tooltip. But Ive seen mobile opinion, should be different mobile phones have different performance. Such as SONY Ericsson mobile phone about clew is still require the user to set themselves up. Nokia also. Only nokia in using the signature software users cannot set to always allow or only hint again. And signed can be set up. 2. Programming staff need to pay attention to, like many functions in the unsigned is before can use, such as GPS, network connection, and file for reading and writing. 3. Signed software what benefits. Signature is told us this software is credible, user the directest feeling is networking or visit the mobile phone files, transceiver SMS, MMS, bluetooth etc, but after signed these functions are available. Part This is jad MIDlet - Permissions attribute in the problem. When unsigned attributes to this request is not strictly, but after signed must note. Must put to use to access to join in, otherwise this function cannot be used. Below are some commonly used MIDlet - Permissions attributes. 2.6 Local Files and Personal Information:The J2ME Wireless Toolkit supports JSR 75, the PDA Optional Packages for the J2ME Platform, which also includes two independent APIs: The FileConnection API gives MIDlets access to a local file system on the device. The Personal Information Management (PIM) optional package includes APIs for manipulating contact lists, calendars, and to-do lists.A real device may have a local file system which can be accessed using the FileConnection API. In the J2ME Wireless Toolkit emulator, a simulated file system is maintained as a directory on your hard disk.The files your application can access using FileConnection are stored in subdirectories of appdbfilesystem, where is the installation directory of the J2ME Wireless Toolkit and is the name of the emulator skin. For example, the DefaultColorPhone emulator skin comes with a root directory installed called root1, which contains a file called Readme. The files full path is appdbDefaultColorPhonefilesystemroot1Readme. You can manage the root directories that are available by choosing MIDlet External events from the emulator windows menu. Youll see a small utility window for adding and removing roots. These actions will also generate events for a registered listener object. In a real device, personal information might be stored in a proprietary format in memory. The emulator uses a directory on your hard disk to contaiin this information, accessible using the PIM API. All information is stored in appdbpim. Lists are stored in subdirectories of the contacts, events, and todo directories. For example, a contact list called Contacts is contained in appdb pim contacts Contacts. Inside the list directory, items are stored in standard formats specified by the Internet Mail Consortium. Contacts are stored in vCard format, while calendar and to-do items are both stored in vCalendar format. SummaryThe J2ME Wireless Toolkit 2.2 is much more than an incremental update of an excellent tool.It includes support for four exciting new specifications that together define six new APIs. As the world of wireless Java technology rapidly evolves, the J2ME Wireless Toolkit keeps pace and contains all the tools you need for.移动设备的应用平台J2ME简介1 什么是J2ME:J2ME(Java 2 Micro Edition)是Java 2的一个组成部分,它与J2SE、J2EE并称。根据Sun的定义:J2ME是一种高度优化的Java运行环境,主要针对消费类电子设备的,例如蜂窝电话和可视电话、数字机顶盒、汽车导航系统等等。J2ME技术在1999年的JavaOne Developer Conference大会上正式推出,它将Java语言的与平台无关的特性移植到小型电子设备上,允许移动无线设备之间共享应用程序。J2ME在设计其规格的时候,遵循着对于各种不同的装置而造出一个单一的开发系统是没有意义的事这个基本原则。于是 J2ME 先将所有的嵌入式装置大体上区分为两种 :一种是运算功能有限、电力供应也有限的嵌入式装置(比方说PDA 、手机);另外一种则是运算能力相对较佳、并请在电力供应上相对比较充足的嵌入式装置 (比方说冷气机、电冰箱、电视机上盒 (set-top box)。因为这两种型态的嵌入式装置,所以Java 引入了一个叫做Configuration 的概念,然后把上述运算功能有限、电力有限的嵌入式装置定义Connected Limited Device Configuration(CLDC)规格之中;而另外一种装置则规范为 Connected Device Configuration(CDC)规格。也就是说,J2ME 先把所有的嵌入式装置利Configuration 的概念区隔成两种抽象的型态。 其实在这里大家可以把Configuration 当作是J2ME 对于两种类型嵌入式装置的规格,而这些规格之中定义了这些装置至少要符合的运算能力、供电能力、记忆体大小等规范,同时也定了一组在这些装置上执行的 Java 程序所能使用的类别函式库、这些规范之中所定义的类别函式库为 Java 标准核心类别函式库的子集合以及与该型态装置特性相符的扩充类别函式库。比方就CLDC 的规范来说,可以支援的核心类别函式库为java.lang.* 、java.io.*、java.util.*,而支援的扩充类别函式库为java.microedition.io.*。区分出两种主要的Configuration 之后,J2ME 接著在定义出Profile的概念。Profile 是架构在Configuration 之上的规格。之所以有Profile的概念,是为了要更明确地区分出各种嵌入式装置上Java 程序该如何开发以及它们应该具有哪些功能。因此Profile 之中定义了与特定嵌入式装置非常相关的扩充类别函式库,而 Java 程序在各种嵌入式装置上的使用者介面该如何呈现就是定义在Profile 里头。Profile 之中所定义的扩充类别函式库是根据底层Configuration 内所定义的核心类别函式库所建立。2 J2ME Wireless Toolkit 2.2 新改进J2ME Wireless Toolkit 已经成为 J2ME 开发应用程序的事实标准工具包。自从 2000 年初次亮相以来,该工具包一直在发展以赶上移动 Java 技术外观上快速改变的步伐。不要被从 2.1 版本以来的小改变所误导。新的工具包在四个重要的领域支持Java Community Process (JCP)所指定的新的可选 API:3D 图形、多媒体通信、蓝牙连网(Bluetooth networking)和数据管理。本文将描述这些新的 API 并且向您展示如何在工具包中实现他们。在这之前,让我们赞美一下更新后的 DefaultColorPhone 模拟器皮肤,自从 2.1 版本以来,该皮肤已有了一个更大的屏幕(320 x 240, 或 QVGA)和更多的颜色(4096 色而不是 256 色)。2.1移动 3D 图形:JSR 184,即 Mobile 3D 图形 API for J2ME (M3G) 在一个集成软件包中提供了三维图形功能,适用于支持最为广泛采用的 J2ME 软件栈、有限连接设备配置(CLDC)和移动信息设备描述(MIDP)的设备。API 为显示 3D 内容提供了两种 API。立即模式 API 使应用程序能够直接创建和操纵 3D元素。这一层之上是一个场景图 API,也称为保留模式,能够提早加载并显示已设计的整个3D 场景。应用程序可以采用最适合的 API,或保留模式与立即模式的组合。JSR 184 规范还为场景图定义了一种文件格式.m3g。该工具包的模拟器全面支持 JSR 184,并且有几个 MIDlet 展示了 API 在 Demo3D 项目中的功能。Life3D 演示了立即模式的使用。PogoRoo 是一个的交互的演示,特点是显示一只跳跃的袋鼠。2.2多媒体通信:J2ME Wireless Toolkit 长期支持 JSR 120、Wireless Messaging API(WMA)的1.1版本;新版本支持 WMA 2.0(JSR 205),其把WMA的功能扩展到包括多媒体通信。在工具包中,通信发生于模拟的环境中。如果多次运行模拟器,模拟器上的应用程序能够相互通信,并且可以使用工具包方便的 WMA Console 实用程序在同一环境中与应用程序交换消息。通信可以遵照以下三种标准协议之一:短消息服务(Short Message Service,SMS)、蜂窝广播服务(Cell Broadcast Service,CBS)或工具包 2.2 版本中的新协议多媒体通信服务(MMS)。您可以标记 MMS 消息,并向消息添加任何文件集合。而且,现在网络监视器能够显示模拟器发送或接收的 MMS 消息。2.3蓝牙和 OBEX:J2ME Wireless Toolkit 模拟器支持 JSR 82,即 Java API for Bluetooth,包括两个独立的 API:蓝牙 API 为蓝牙无线网络提供了接口,包括设备恢复和数据交换。OBEX API 允许应用程序在蓝牙或其他通信信道上使用对象交换(Object Exchange,OBEX)协议。该工具包允许在即使没有实际蓝牙硬件的情况下,也可以开发和测试采用蓝牙技术的应用程序。该工具包模拟蓝牙环境,您可以在该环境中运行可相互发现的多个模拟器实例和使用蓝牙 API 交换数据。应用程序实例 BluetoothDemo 显示了如何从一个模拟器将图像传输到另一个模拟器。J2ME Wireless Toolkit 通过模拟的蓝牙和红外连接上实现 OBEX 传输。模拟的红外连接遵循 Infrared Data Association 定义的 IrDA 标准。工具包在多个运行的模拟器之间模拟红外传输。您可以使用工具包参数中的 Bluetooth/OBEX 标签来配置蓝牙和 OBEX 环境。其控制了诸如模拟器在模拟的蓝牙环境中试图用多长时间去发现其他设备,以及最大数据包大小等参数。请参见工具包的用户指南获取更多的详细信息。2.4无线开发工具包(WTK):WTK 的全称是Sun J2ME Wireless Toolkit Sun的无线开发工具包。这一工具包的设计目的是为了帮助开发人员简化j2me的开发过程。使用其中的工具可以开发与 Java Technology for the Wireless Industry (JTWI, JSR 185) 规范兼容的设备上运行的j2me 应用程序。该工具箱包含了完整的生成工具、实用程序以及设备仿真器。到本文写作时为止可以获取有四个版本,分别是1.0.4, 2.0, 2.1和2.2。每个版本都包括英语,日语,简体中文,繁体中文4个语种包。WTK是Sun提供的一个开发工具包。目前各大手机厂商往往把WTK经过自身的简化与改装,推出适合自身产品,如SonyEricsson,Nokia Developers suit
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 广东省汕头市潮阳一中明光学校2025-2026学年高三上学期9月月考数学试题含答案
- 安全IDE标准制定-洞察及研究
- 食品溯源平台优化-洞察及研究
- 赛事数据实时分析与可视化呈现技术-洞察及研究
- 基于拓扑优化的凹片形端头结构在有限空间内的散热效能提升方案
- 基于AI算法的减速阀故障预测与自愈控制架构创新
- 地理空间制图与智慧城市BIM系统对接的语义鸿沟修复策略
- 国际标准差异导致的出口设备适应性改造技术路径
- 可降解材料在低温环境下的性能稳定性研究
- 反射型陶瓷金卤灯在植物补光应用中的光质调控与生物效应关联性研究
- 洪恩识字识字卡(001-100)可直接打印剪裁
- 小学科学-《固体液体和气体》教学课件设计
- 23J916-1:住宅排气道(一)
- 岗位任职资格要求表
- 麻醉学科建设与管理
- 底流式消能池水力计算
- 矿山越界采矿调查报告样板(19.05)
- 信息技术学习评价表
- 智能会议系统施工方案及方法
- 成都某市政道路竣工总结及工程质量自评报告
- 雾都孤儿读书笔记3000字(三篇)
评论
0/150
提交评论