`
doll
  • 浏览: 82850 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

J2ME System.getProperty() 能够得到的东西总结

    博客分类:
  • J2ME
阅读更多
在JSR规范里面 J2ME 是可以通过 System.getProperty(String key) 得到一些你想要的东东。
J2ME Defined System Properties
JSR Property Name           Default Value¹
30 microedition.platform null
  microedition.encoding ISO8859_1
  microedition.configuration CLDC-1.0
  microedition.profiles null
37 microedition.locale null
  microedition.profiles MIDP-1.0
75 microedition.io.file.FileConnection.version 1.0
  file.separator (impl-dep)
  microedition.pim.version 1.0
118 microedition.locale null
  microedition.profiles MIDP-2.0
  microedition.commports (impl-dep)
  microedition.hostname (impl-dep)
120 wireless.messaging.sms.smsc (impl-dep)
139 microedition.platform (impl-dep)
  microedition.encoding ISO8859-1
  microedition.configuration CLDC-1.1
  microedition.profiles (impl-dep)
177 microedition.smartcardslots (impl-dep)
179 microedition.location.version 1.0
180 microedition.sip.version 1.0
184 microedition.m3g.version 1.0
185 microedition.jtwi.version 1.0
195 microedition.locale (impl-dep)
  microedition.profiles IMP-1.0
205 wireless.messaging.sms.smsc (impl-dep)
205 wireless.messaging.mms.mmsc (impl-dep)
211 CHAPI-Version 1.0

¹(impl-dep) indicates that the default value is implementation-dependent.

我用Nokia 6303C 移动动感地带的环境下 测试过 wireless.messaging.sms.smsc 得到的是 13800100500 这个是北京的sim卡短信息中心号码
wireless.messaging.mms.mmsc 得到的是 http://mmsc.monternet.com 这个是彩信的东东
microedition.locale 得到的是zh-CN
其他的各位童鞋们 自己测试下吧
分享到:
评论

相关推荐

    J2ME 常用的一些API

    - **获取MIDP(Mobile Information Device Profile)版本**:`System.getProperty("microedition.profiles")`,这对于确定应用程序能够使用的API集非常有用。 #### 字符编码和语言设置 - **获取字符编码**:`System...

    j2me获取基站信息

    out = System.getProperty("Cell-ID"); if (out == null || out.equals("null") || out.equals("")) { out = System.getProperty("CellID"); if (out == null || out.equals("null") || out.equals("")) { // ...

    读取MIDlet的系统属性

    s = System.getProperty("microedition.configuration"); append(getValue("CLDC 版本", s)); // MIDP 版本属性 s = System.getProperty("microedition.profiles"); append(getValue("MIDP 版本", s)); //...

    获得系统手机信息的代码.rar_j2me

    - **System.getProperty()**:J2ME提供了一个名为`System.getProperty()`的方法,可以获取设备的某些属性,如操作系统版本、内存大小等。例如,`System.getProperty("microedition.platform")`会返回运行MIDlet的...

    J2ME Property属性表E.doc

    在J2ME(Java 2 Micro ...在实际开发过程中,开发者可以通过`System.getProperty()`方法获取这些属性的值,以便进行条件判断和功能适配。通过这种方式,J2ME应用程序可以在全球范围内的众多设备上实现广泛兼容性。

    j2me全屏显示的例子程序代码

    3. **System.getProperty()**:Java ME中,可以使用`System.getProperty("microedition.display.fullscreen")`来检查设备是否支持全屏模式。如果返回`true`,则表明设备支持。 4. **Displayable.setFullScreenMode...

    IMEI.rar_IMEI_基站

    总结来说,IMEI.rar_IMEI_基站这个压缩包文件内容可能涉及了如何使用J2ME编程语言获取手机的IMEI码和基站信息。IMEI码的获取相对简单,主要通过System.getProperty()方法;而基站信息的获取则需要更深入的地理位置...

    J2ME 最佳实践,J2ME 是Sun 发布的运行在小型设备上的微型版Java 的一系列标准

    使用`System.getProperty(String key)`方法可以查询设备特性,若支持特定API,则返回相应的字符串,否则返回`null`。这种机制允许开发者编写更智能的代码,根据设备实际能力动态启用或禁用某些功能。 ```java ...

    J2ME访问手机文件[文].pdf

    String version = System.getProperty("microedition.io.file.FileConnection.version"); if (version == null) { System.out.println("cannot control fileSystem!"); } else { System.out.println("version: ...

    J2ME 全方位开发讲解基础汇总

    **J2ME全方位开发讲解基础汇总** ...总结来说,J2ME开发涉及到面向对象编程、MVC架构、IMEI获取、网络连接处理以及字符串操作等关键点。理解并熟练运用这些技术将有助于开发出高效、用户友好的J2ME应用程序。

    JSR75文件系统使用经验总结

    首先,要检查设备是否支持JSR 75提供的文件系统功能,可以通过调用`System.getProperty("microedition.io.file.FileConnection.version")`来判断。如果返回值不为null,则表示设备支持JSR 75的文件系统。 在进行...

    Killtest 免费提供 310-110 最新资料下载

    根据给定的信息,我们可以提取和总结出与310-110考试相关的知识点,主要集中在Java ME(Java 2 Micro Edition, J2ME)移动应用开发领域。 ### Sun Certified Mobile Application Developer for J2ME.v1.0 该认证...

    文件操作-JSR75包使用总结

    通过检查`System.getProperty("microedition.io.file.FileConnection.version")`是否存在,可以判断手机是否具有文件系统功能。如果返回值不为空,说明设备支持JSR75文件操作。 接下来是打开文件连接。使用`...

    jni入门

    总结来说,JNI是Java平台的一个重要工具,它弥补了Java在性能、本地接口调用以及嵌入式开发中的不足,使Java能够更好地适应各种复杂的应用场景。通过JNI,开发者可以充分利用Java的跨平台特性和本地代码的高性能,...

    BlackBerry视频录制编程

    - 使用 `System.getProperty("video.encodings")` 方法可以获取当前设备支持的所有视频规格字符串。 - 如果该设备不支持任何视频编码,则返回值为 `null`。 - 返回的字符串格式是这样的:“encoding=video/3gpp&...

    JSR75操作手机内存

    在实际开发中还需要注意不同设备对FC API的支持情况,可以通过调用`System.getProperty("microedition.io.file.FileConnection.version")`来检测当前设备是否支持FC API以及其版本号。如果返回值为“1.0”,则表示...

    最新Java面试大全

    - **获取从1970年到现在的毫秒数**:使用System.currentTimeMillis()。 - **判断某日期是否为当月最后一天**:通过Calendar类设置日期并比较。 - **格式化日期**:使用SimpleDateFormat或DateTimeFormatter。 #### ...

    JAVA基础面试题全

    - **获取时间戳**: 在Java中,可以通过 `System.currentTimeMillis()` 方法来获取当前的时间戳,该值表示自1970年1月1日以来的毫秒数。 - **格式化时间**: 使用 `SimpleDateFormat` 类来格式化日期和时间。 #### ...

Global site tag (gtag.js) - Google Analytics