j2me - unique ID

HiHow can i get a unique id or anything like that from the phone or sim card using j2me (MIDP1.0 - CLDC1.0)?Please help meThanksS.Yavari
[171 byte] By [S.Yavaria] at [2007-10-3 5:11:36]
# 1
HiI note that , the solution that i want , must work on any type of mobile phone.thanks
S.Yavaria at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Not possible.
deepspacea at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
As more and more phones come with bluetooth, you can try something like this:LocalDevice localDevice = LocalDevice.getLocalDevice();String uniqueID = localDevice.getBluetoothAddress();But obviously this will only work with phones with BT.-Frank
frapaaa at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

i am facing a similar problem... looking around i found something that might help me and maybe you as well... the UUID (http://en.wikipedia.org/wiki/UUID) there is a class called UUID (http://java.sun.com/j2se/1.5.0/docs/api/index.html?java/util/UUID.html)... hope this helps ;)

Message was edited by:

B_Bzrr

B_Bzrra at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
I don't think the Java SE API will be valid on a Java ME device :-)
frapaaa at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

so did I, but on the BluetoothDemo, that comes with the Sun Java Wireless Toolkit 2.5 Beta, they make use of the UUID...

honestly, i havent tried it myself yet (i am more worried about some other poblems that you might hear in a while ;) ) and i also havent found it in the MID Profile overview, but if they use, it must be available, right?

B_Bzrra at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

Yes, it's true, what you say :)

But there is a catch - the UUID class used in the BluetoothDemo is located in the javax.bluetooth package.

Which narrows it down to devices supporting the bluetooth api. And if you've got bluetooth support, I think it's easier to use getBluetoothAddress to get a unique id :) But that might be because I haven't used UUID before!

-Frank

(using UUID would probably be a more 'correct' way to do it though)

Message was edited by:

frapaa

frapaaa at 2007-7-14 23:18:01 > top of Java-index,Java Mobility Forums,Java ME Technologies...