-->

A unique identifier for cell phone other than IMEI

2020-02-15 03:49发布

问题:

I'd like to have an unique identifier for a cell phone. Since there is not a particular way to find IMEI or IMSI on every mobile, I want to know if there are other ways to find an unique identifier for a cellphone. Can anyone suggest a way?

回答1:

You can use just time in millis if you don't need strong UID. Or you can get UUID implementation from J2SE and port it to J2ME. In this way UUID should be stored in RMS. One of the best way is to build server side and distribute app only via this service. When new user try to download app you can put into manifest and jad any UUID you want and use it in your app via MIDlet.getAppProperty( String uuidPropertyName );



回答2:

If your target device has JSR82, you can use LocalDevice.getLocalDevice().getBluetoothAddress() -- that's unique.