获取设备IMEI [英] Getting Device IMEI

查看:115
本文介绍了获取设备IMEI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以适用的常见方式获取Java ME设备的 IMEI 到所有设备

How to get the IMEI of a Java ME device in a common way that is applicable to all devices

推荐答案

通常,使用java.lang.System.getProperty()可以返回设备IMEI.

Usually, using java.lang.System.getProperty() can return the device IMEI.

不幸的是,用于获取IMEI所需的String参数将从一家手机制造商更改为另一家手机制造商.

Unfortunately, the String parameter you need to use to get the IMEI will change from one handset manufacturer to the next.

要尝试的字符串:

imei
phone.imei
com.lge.imei
com.nokia.imei
com.nokia.mid.imei
com.siemens.imei
com.sonyericsson.imei
com.motorola.imei
...
你明白了.

imei
phone.imei
com.lge.imei
com.nokia.imei
com.nokia.mid.imei
com.siemens.imei
com.sonyericsson.imei
com.motorola.imei
...
you get the idea.

您可能需要将字符串的最后一部分大写.

you may need to uppercase the last part of the string.

结果的格式也可以更改.
它可以是完整的imei,前缀为"IMEI",中间为17个数字,中间为3-".
它可以是13或15位数字的标准化imei ...

the format of the result can change too.
it can be a full imei with a "IMEI" prefix and 3 "-" in the middle of 17 digits.
it can be a normalized imei of 13 or 15 digits...

这篇关于获取设备IMEI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆