手机系统属性——SunWTK/lib下的system.config文件定义

写程序时都使用System.getProperty(String)来获得系统属性。自己找了一下,发现是在SunWTK安装目录下lib文件夹下的system.cofig文件进行的规范约束。

所有规范约束如下:

 

 

# Properties visible from System.getProperty()
microedition.jtwi.version: 1.0
microedition.msa.version: 1.0
microedition.configuration: CLDC-1.1
microedition.profiles: MIDP-2.1
microedition.locale:  en-US
microedition.platform: SunMicrosystems_wtk
device.manufacturer: unknown
device.model: wtk-emulator
software.version: 1.0
# microedition.encoding: ISO8859_1

#
# Available comm ports. In case that this property is not available in this file,
# emulator is attempting to obtain real system comm ports
microedition.commports: COM1,COM2

#
# I18N aliases for common character encodings
SHIFT_JIS_InternalEncodingName: SJIS
X_SJIS_InternalEncodingName: SJIS
#
# CLDC implementation parameters

# use MIDP protocol implementations
javax.microedition.io.Connector.protocolpath: com.sun.kvem.io

# java.lang.Character.caseConverter: com.sun.cldc.i18n.uclc.DefaultCaseConverter
# com.sun.cldc.i18n.Helper.i18npath: com.sun.cldc.i18n.j2me
# microedition.implpath: com.sun.cldc
# com.sun.cldc.util.j2me.TimeZoneImpl.timezone: UTC

# JSR082 properties
com.sun.kvem.jsr082.bluetooth.BCC: com.sun.kvem.jsr082.impl.bluetooth.BluetoothController
com.sun.kvem.jsr082.bluetooth.SDDBStorage: com.sun.kvem.jsr082.impl.bluetooth.SDDBStorageImpl

# WMA properties
wireless.messaging.version: 2.0

# This file is appended at the end of the MIDP system.config file.

# WMA
wireless.messaging.sms.smsc: +12345678900
wireless.messaging.mms.mmsc: http://mmsc.127.0.0.01

# Multimedia Configuration properties
mmapi-configuration: com.sun.mmedia.WtkQSoundAmmsConfig

microedition.media.version: 1.1
supports.mixing: true
supports.audio.capture: true
supports.video.capture: true
supports.recording: true
audio.encodings: encoding=pcm encoding=pcm&rate=8000&bits=8&channels=1 encoding=pcm&rate=22050&bits=16&channels=2
video.encodings: encoding=rgb565&width=160&height=120 encoding=rgb565&width=320&height=240 encoding=rgb565&width=120&height=160
video.snapshot.encodings: encoding=jpeg encoding=png
streamable.contents: audio/x-wav
# AMMS system properties
microedition.amms.version: 1.0
supports.mediacapabilities: imageencoding imagepostprocessing audio3d camera tuner
audio.samplerates: 44100 22050
audio3d.simultaneouslocations: 32
tuner.modulations: fm am
camera.resolutions: video:176x144
camera.orientations: video:unknown


# This file is appended at the end of the MIDP system.config file.

# JSR75
microedition.io.file.FileConnection.version: 1.0
microedition.pim.version: 1.0
fileconn.dir.photos: /root1/photos/
fileconn.dir.videos: /root1/videos/
fileconn.dir.graphics: /root1/graphics/
fileconn.dir.tones: /root1/tones/
fileconn.dir.music: /root1/music/
fileconn.dir.recordings: /root1/recordings/
# This file is appended at the end of the MIDP system.config file.

# JSR82
bluetooth.api.version: 1.1
obex.api.version: 1.1

# This file is appended at the end of the MIDP system.config file.

# JSR179
microedition.location.version: 1.0

# This file is appended at the end of the MIDP system.config file.

# JSR184
microedition.m3g.version: 1.1
microedition.m3d.version: 1.1
# This file is appended at the end of the MIDP system.config file.

# JSR239 properties
microedition.khronos.egl.version: 1.1
microedition.khronos.opengles.version: 1.1
jsr239.noqueue: false
jsr239.supportsEGL11: true
jsr239.supportsGL11: true
jsr239.supports_OES_query_matrix: true
jsr239.supports_OES_draw_texture: true
jsr239.supports_OES_matrix_palette: true
jsr239.supports_OES_point_size: true
jsr239.supports_OES_texture_cube_map: false
jsr239.supports_OES_texture_env_crossbar: false
jsr239.supports_OES_texture_mirrored_repeat: false
jsr239.supports_OES_blend_subtract: false
jsr239.supports_OES_blend_func_separate: false
jsr239.supports_OES_blend_equation_separate: false
jsr239.supports_OES_stencil_wrap: false
jsr239.supports_OES_extended_matrix_palette: false
jsr239.supports_OES_framebuffer_object: false


# This file is appended at the end of the MIDP system.config file.

# JSR238

# leapfrog-cougar implementation
microedition.global.version: 1.0

# wtk
binary.files.accept = png,jpg,gif
text.files.accept = txt,properties

# This file is appended at the end of the MIDP system.config file.

#JSR177
microedition.smartcardslots: 0H,1H
microedition.satsa.apdu.version: 1.0
microedition.satsa.crypto.version: 1.0
microedition.satsa.pki.version: 1.0
# This file is appended at the end of the MIDP system.config file.

# JSR211
microedition.chapi.version: 1.0

# This file is appended at the end of the MIDP system.config file.

# JSR229
microedition.payment.version: 1.1

# This file is appended at the end of the MIDP system.config file.

# JSR226
microedition.m2g.version: 1.1
microedition.m2g.svg.baseProfile: tiny
microedition.m2g.svg.version: 1.1

#JSR172 - Web Services API part
xml.rpc.subset.version: 1.0
#JSR172 - JAXP XML Parser part
xml.jaxp.subset.version: 1.0

# JSR180
microedition.sip.version: 1.0.1

 

补充:真机上另有,返回存储卡信息

fileconn.dir.memorycard

 

获得短信服务中心号码

wireless.messaging.sms.smsc

如果手机支持 WMA 则可以通过获得属性“ wireless.messaging.sms.smsc ”的值,来获得短信服务中心号码。对于国内的三个运营商来说,中国移动的短信服务中心号码是 13800XXX500, 其中 XXX 为号码所属的地区电话区号,中国联通的短信服务中心号码比较乱,但是均以 130 开头,包括 3G 的手机,而对于中国电信的手机,咨询客服以后均告知不需要设置短信服务中心号码。

补充:

http://blog.csdn.net/xiaoli_feng/archive/2007/10/18/1830871.aspx

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值