本文介绍了如何让J2EI的IMEI支持所有设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让J2EI支持所有设备的IMEI?我做了一些谷歌搜索并找出以下解决方案,但它是针对特定设备的。

is there any way to get IMEI for J2ME supported all devices??i did some googling and find out the below solution but it is for device specific.

诺基亚。
System.getProperty(com.nokia.IMEI);

Nokia.System.getProperty("com.nokia.IMEI");

SonyEricsson
System.getProperty(com.sonyericsson.imei);

SonyEricssonSystem.getProperty("com.sonyericsson.imei");

Motorola
System.getProperty(com.motorola.IMEI);

MotorolaSystem.getProperty("com.motorola.IMEI");

在那里为所有设备提取IMEI的任何通用方法??

is there any generic way to fetch IMEI for all devices??

推荐答案

没有通用的方法来获取所有设备的IMEI,你有仅通过编码来完成。您可以使用其他方式尝试使用System类,如下所示,

There is no generic method to fetch IMEI for all devices, you have to do it by coding only. You can try it in alternate way like use System class as follows,

System.getProperty("microedition.platform");

这将返回主机平台或设备的名称。在诺基亚设备中,名称由诺基亚,设备型号和由/分隔的软件版本组成。 诺基亚和型号之间以及/两侧之间没有空格。形式上,平台字符串的语法是:Nokia MODEL_NUMBER/SW_VERSION。例如, Nokia6310i / 4.42 Nokia3510i / p1.25

This will going to return you the name of the host platform or device. In Nokia devices the name consists of "Nokia", the device model, and software version separated by "/". There is no space between "Nokia" and the model number nor on either side of "/". Formally, the syntax of the platform string is: Nokia MODEL_NUMBER "/" SW_VERSION. For example, Nokia6310i/4.42 or Nokia3510i/p1.25.

从结果中你可以获取制造商并使用Switch case通过编码获得IMEI,

From the result you can fetch the manufacture and use Switch case to get IMEI by coding,

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

10-27 03:42