Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 23:02, 19 November 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

获取Series40双SIM卡手机属性

From Wiki
Jump to: navigation, search
WP Metro Icon Chinese.png
Article Metadata

代码示例
兼容于
文章
max.chen 在 23 Oct 2011 创建
最后由 hamishwillee 在 19 Nov 2013 编辑

诺基亚最近发布了三款C2系列新机C2-02、C2-03与C2-06,其中C2-03与C2-06的一个新特性就是Series 40手机开始支持双SIM卡了。

600-nokia-c2-02 closed.png

诺基亚C2-03

我们知道通过System.getProperty()方法可以获得设备的一些属性,例如电池电量,网络情况等。那么在双SIM卡手机上System.getProperty()将如何使用呢?答案很简单,诺基亚为双卡手机提供了两组新的参数,用来分别获取每个SIM卡的相关属性:


SIM1 SIM2
com.nokia.multisim.smsc.sim1 com.nokia.multisim.smsc.sim2
com.nokia.multisim.networkstatus.sim1 com.nokia.multisim.networkstatus.sim2
com.nokia.multisim.networkavailability.sim1 com.nokia.multisim.networkavailability.sim2
com.nokia.multisim.networksignal.sim1 com.nokia.multisim.networksignal.sim2
com.nokia.multisim.msisdn.sim1 com.nokia.multisim.msisdn.sim2
com.nokia.multisim.countrycode.sim1 com.nokia.multisim.countrycode.sim2


例如下面的代码演示了如何分别获取每个SIM卡的短信中心的号码:

String smsc1;
String smsc2;
smsc1 = System.getProperty("com.nokia.multisim.smsc.sim1");
smsc2 = System.getProperty("com.nokia.multisim.smsc.sim2");

具体的项目源文件请在这里File:DualSIM.zip下载,然后导入到Netbeans里即可。

相关链接

This page was last modified on 19 November 2013, at 23:02.
228 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×