在JSR规范里面 J2ME 是可以通过 System.getProperty(String key) 得到一些你想要的东东。
J2ME Defined System Properties
1(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 Defined System Properties
JSR | Property Name | Default Value1 |
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 |
1(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
其他的各位童鞋们 自己测试下吧