站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2ME 专题j2me getProperty

j2me getProperty

摘要: j2me getProperty

System.getProperty(String key)和MIDlet.getAppProperty(String key)方法的详细说明

ystem.getProperty(String key)标准的5个属性键列表如下:

属性键值 描述 默认值
microedition.configuration 支持的configuration的名称和版本号
microedition.encoding 平台使用的默认字符编码方式
microedition.locale 平台当前locale
microedition.platform 宿主平台名称
microedition.profiles 所有支持的profile的名称

在索爱T630模拟器上得到的结果分别是
CLDC-1.0GBKzh_CNj2meMIDP-1.0

MIDlet.getAppProperty(String key)标准的属性键列表如下:
MIDlet-Name
MIDlet-Jar-Size
MIDlet-Jar-URL
MIDlet-Vendor

各个厂商的手机或许会有自己的扩充键值。



↑返回目录
前一篇: j2me游戏引擎程序结构
后一篇: Mophun &