smart solutions for small devices
[ start | index | login ]
start > J2ME > Getting the IMEI or not ...

Getting the IMEI or not ...

Created by bjoernQ. Last edited by bjoernQ, 6 years and 23 days ago. Viewed 5,373 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
Many midlets programmers are faced to the problem of getting the phone's IMEI.
Well, some phones support this through getting system properties or using a legacy api. Other's (e.g. Nokia S60) don't support this.
I think the only usefull thing you can do with the IMEI is for registering a midlet so that a registration key is bound to a single phone.
One idea that came to mind is:
If the phone supports bluetooth (JSR-82) you can use the local bluetooth address.
String address = LocalDevice.getLocalDevice().getBluetoothAddress();

This address should be unique. The only problem is that this only works on phones supporting JSR-82.

On Nokia S40 3rd Edition devices you can query a system property:

com.nokia.mid.imei

e.g.

String imei = System.getProperty("com.nokia.mid.imei");

Only available on S40 3rd Edition devices. (Not in 6270 and 6101). Returns the device’s IMEI code.
Note: The MIDlet must be signed, otherwise this value is NULL.

no comments | post comment
www.mobile-j.de | Bjoern Quentin