J2ME参数配置
2010-11-24 17:19
260 查看
部分参数适用于特定平台,供参考。 Basic values: microedition.platform = Nokia7650 microedition.encoding = ISO8859_1 microedition.configuration = CLDC-1.0 microedition.profiles = MIDP-1.0 microedition.locale=en-US microedition.timezone=GMT JSR-135 MMAPI values: microedition.media.version: 1.1 supports.mixing: false supports.audio.capture: true supports.video.capture: false supports.recording: true audio.encodings: encoding=audio/AMR video.encodings: encoding=video/3gpp video.snapshot.encodings: encoding=image/JPEG streamable.contents: audio/mp4a-latm video/mp4v-es JSR-75 File Connection API: microedition.io.file.FileConnection.version: 1.0 using System.getProperty("..."): file.separator: / fileconn.dir.photos=file:///c:/pictures/camera_semc/ fileconn.dir.videos=file:///c:/videos/ fileconn.dir.tones=file:///c:/sounds/ fileconn.dir.music= fileconn.dir.recordings= fileconn.dir.private= fileconn.dir.memorycard=file:///e:/ fileconn.dir.photos.name=camera_semc/ fileconn.dir.videos.name=videos/ fileconn.dir.tones.name=sounds/ fileconn.dir.music.name: null fileconn.dir.recordings.name: null fileconn.dir.memorycard.name: null fileconn.dir.roots.names: returns localized names to the roots JSR 120 - JSR 205 WMA wireless.messaging.sms.smsc=+18768141109 wireless.messaging.mms.mmsc=www.airtelfun.com JSR-82 Bluetooth using System.getProperty("..."): bluetooth.api.version: ?? obex.api.version: ?? Call LocalDevice.getProperty("...") with the following parameters: bluetooth.api.version bluetooth.master.switch bluetooth.sd.attr.retrievable.max bluetooth.sd.trans.max bluetooth.connected.devices.max bluetooth.l2cap.receiveMTU.max bluetooth.connected.inquiry.scan bluetooth.connected.page.scan bluetooth.connected.inquiry bluetooth.connected.page bluetooth.system.state Others asorted: microedition.pim.version=1.0 microedition.commports=COM0 microedition.location.version=1.0 microedition.m3g.version=1.0 microedition.jtwi.version=1.0 在J2ME开发中,我们经常需要和手机系统进行交互,获得一些和系统相关的信息,在J2ME API设计中,提供了一系列的系统属性,可以让我们来进行获得,下面就一一进行介绍。 表1 CLDC、MIDP和JTWI属性
实际使用示例: String name = System.getProperty(“microedition.platform”); 注意:如果需要获得JVM或jad文件中的信息,需要使用MIDlet类中的getAppProperty方法,其属性名则需要查阅jad文件的设定,和本文所述的属性名无关 nokia论坛里的手机规范,这个是权威。不过一次只能查看一个机型。 http://www.forum.nokia.com/devices/matrix_all_1.html motorola的 http://developer.motorola.com/technologies/java/ Sony Ericsson http://developer.sonyericsson.com/site/zhcn/home/p_home.jsp |
相关文章推荐
- J2ME Polish 配置参数详解-j2me教程
- J2ME Polish 全攻略之理解各个配置参数
- Hadoop YARN配置参数剖析
- Android中将清单文件的一些配置参数
- Kafka笔记二之Topic操作,文件参数配置
- 怎么样配置druid将sql语句及参数记录到日志文件中去?
- ZooKeeper基本配置参数。
- 数据库连接池DBCP 、c3p0配置参数说明
- kaldi中文语音识别thchs30模型训练代码功能和配置参数解读
- Caffe配置:参数的介绍入门
- 修改SELinux配置参数,重启后出现内核报错
- JVM参数配置大全
- memcached.exe配置参数
- HM配置参数的介绍
- JVM笔记4:Java内存分配策略及配置参数
- Ubuntu下nginx编译安装参数配置
- haproxy配置参数详解
- elasticsearch配置参数(总结)及说明
- vsftpd配置常用参数集合解析
- [Nginx]Nginx主配置参数详解,Nginx配置网站