How to get Phone IMEI number with J2ME / JavaME
International Mobile Equipment Identity (IMEI) is used to identify valid devices connected to GSM and UMTS network. This number can be accessed from a mobile phone by dialing *#06# on the keypad. IMEI is commonly use by software developers as part of software protection scheme to prevent it from being pirated.
JavaME developers however suffers from a drawback because MIDP/CLDC specification does not include an API to obtain IMEI from mobile devices. However there are few phone manufacturers included this functionality through System.getPropery() calls.
Here's how to get IMEI number from mobile devices of different manufacturers
Nokia
PLAIN TEXT
JAVA:
1.
System.getProperty("phone.imei"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
2.
System.getProperty("com.nokia.IMEI"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
Note ; Requires signed midlet. S60 3rd edition device does not requires signing for this to work.
Sony-Ericsson
PLAIN TEXT
JAVA:
1.
System.getProperty("com.sonyericsson.imei"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
Note ; might not work on all model, YMMV
Motorola
PLAIN TEXT
JAVA:
1.
System.getProperty("IMEI"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
2.
System.getProperty("com.motorola.IMEI"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
Samsung
PLAIN TEXT
JAVA:
1.
System.getProperty("com.samsung.imei"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
Siemens
PLAIN TEXT
JAVA:
1.
System.getProperty("com.siemens.imei"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />;
Hopefully this information can aid you in your J2ME programming projects.
Quick Tip :
It's quite hard to determine the phone model/manufacturer well ahead beforehand. For a more robust solution, I suggest that you combine the above call with System.getProperty("microedition.platform"blogs.sun.com/images/smileys/wink.gif" class="smiley" alt=";)" title=";)" />.

Sir,
I had lost my mobile 1n 10.04.09 at 07.20.pm onwards.
my mobile model no is nokia3110c.My mobile imei no is 359343020074374.so pls find it sir.
Posted by Raja.S on April 11, 2009 at 11:31 PM PDT #
Is it possible to get th IMEI number of windows mobile?
Posted by Norton on September 08, 2009 at 12:29 AM PDT #