Does anyone know if it is possible to get the IMEI / Serial number, or the mobile number of the phone from within a Java App? I need a unique ID per phone and that would seem to be the way to go.
This is for MIDP1 or MIDP2 (preferably MIDP1 though).
Does anyone know if it is possible to get the IMEI / Serial number, or the mobile number of the phone from within a Java App? I need a unique ID per phone and that would seem to be the way to go.
This is for MIDP1 or MIDP2 (preferably MIDP1 though).
Hi ,
You can get the IMEI like this in j2me
System.getProperty("com.siemens.IMEI");
System.getProperty("com.samsung.imei");
System.getProperty("com.sonyericsson.imei");
System.getProperty("com.motorola.IMEI");
System.getProperty("com.nokia.mid.imei");
For phone number read the below article
http://discussion.forum.nokia.com/fo...d.php?t=162579
Not sure what you mean by "corrupted".
In practice, you cannot get the IMEI number on most mobile phones.
As far as I know, Nokia and Motorola require that your midlet is signed in order to be able to retrieve those "sensitive" data.
/Lapi.
This is usually the case. Specifically, signed by the manufacturer or operator. Signing by the developer or Java Verified will not give you access to this.
There maybe some devices that allow access to the IMEI to unsigned apps (some Nokia E-series devices, I think). But these are a minority.
If you get (null) for IMEI properties, then the device simply does not allow access.
Hi All,
here is something regarding IMEI information.
http://mobilepit.com/10/how-to-get-i...me-javame.html
is this useful ?
thanks,
jitu_goldie..
thanks,
jitu_goldie..
KEEP TRYING..
[QUOTE=jitu_goldie;561448]here is something regarding IMEI information.
...url removed...
is this useful ?
/QUOTE]
This is definitely not useful as it is completely wrong.
A Java ME midlet must be signed to retrieve the IMEI number, and it must also be signed by an operator or manufacturer... this is not something that a normal Java ME developer can achieve.
- Mike
NAVTEQ Network for Developers
The community for developing innovative location-based applications
http://NN4D.com
thanks,
jitu_goldie..
KEEP TRYING..
The site you point to is wrong.
- Mike
NAVTEQ Network for Developers
The community for developing innovative location-based applications
http://NN4D.com
Last edited by mikemoore; 2009-03-23 at 15:19.
There isn't one. Just try it on a phone, you'll soon see that all you ever get back is null. The common misconception that it is possible is due to a misreading of the documentation that says that the property exists. The property does exist, but it only ever returns null unless the midlet is signed by the operator or manufacturer.
- Mike
NAVTEQ Network for Developers
The community for developing innovative location-based applications
http://NN4D.com
There is a wiki article How to get the IMEI in Java ME.
However, you have to read it carefully.
A lot of people misunderstand this, presumably because:
* they read "In Nokia phones you can get it with...", and go straight to try it out
* they are not familiar with what is implied by "signed to either operator or manufacturer domain" (which basically means, "you can't do this")
* not everyone speaks English as their first language.
Also, a lot of people reply to forum posts that ask about getting IMEI numbers, saying "your midlet needs to be signed". At least one person I know of has paid out money for a Thawte certificate because he was told this, only to find out that it doesn't help him in the slightest.
Apparently, unsigned apps can get the IMEI number, on a very, very small number of handsets. However, anyone who wants to get the IMEI number is not writing an app just for their own phone (since they could just do *#06# an read it off the screen). Chances are, they want their app to run on lots of peoples' phones, and they want some unique identifier for users. In that case, they need to get the IMEI number from different models of handset, and this, in practice, cannot be done.
I appreciate everyone is trying to be helpful by listing system property names or pointing people in the direction of articles on this subject. But I think a lot of confusion and false hope would be avoided if we all make it clear that, with very, very few exceptions, you simply have no hope of reading the IMEI number from a handset.
Cheers,
Graham.
SonyEricsson phones from JP-7 allow you to retrieve the IMEI without the need to sign the midlet.
Verified on K800i, G502.
/Lapi