注意:在Java ME平台上获取手机串号,在某些手机中是可行的,但是某些手机中就是无法获取的。对于即便是可以获取串号的手机来说,也仅仅限于进行了签名的应用程序才可以获得手机串号。
在诺基亚手机中,我们可以这样获取手机串号: System.getProperty("com.nokia.mid.imei")
在Series60平台的手几种,这样的获取串号操作需要你的应用程序被认证为网络运营商信任的应用程序或者手机生产商信任的应用程序,并 且只有在Series40第三版功能包1之后的手机设备中才能够使用。 On Series 40 phones this requires that your midlet is signed to either operator or manufacturer domain, and this is only available Series 40 3rd Edition FP1 devices and newer.
在S60平台,有些S60第三版的手机已经实现了这样的功能,如E60,E61,E62,但是不包括3250和5500。对于S60平台,获取串号并不需要签名认证。
在西门子手机中,我们可以这样获取传号: System.getProperty("com.siemens.IMEI")
其他手机:
三星: System.getProperty("com.samsung.imei");
索尼爱立信: System.getProperty("com.sonyericsson.imei");
摩托罗拉: System.getProperty("IMEI" );
诺基亚: System.getProperty("phone.imei");
System.getProperty("com.nokia.IMEI");
参考地址:
http://hi.baidu.com/xzeus/blog/item/b1f2495496664f52574e0049.html
原文地址:
http://wiki.forum.nokia.com/index.php/%E5%A6%82%E4%BD%95%E5%9C%A8Java_ME%E5%B9%B3%E5%8F%B0%E4%B8%8A%E8%8E%B7%E5%8F%96%E6%89%8B%E6%9C%BA%E4%B8%B2%E5%8F%B7