• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Looking for a unique phone identifier

Hi, I'm trying to find a qay to uniquely identify a device that is not tied to the SIM card. That is, some sort of serial number or device identifier that will be different between two phones and will not change if the user swaps SIM cards. TelephonyManager.getDeviceId() and .getSimSerialNumber() won't work, as they are tied to the SIM card.

BlackBerry has DeviceInfo.getDeviceId(). Does something like this exist in Android?
 
You can use:
TelephonyManager t = Context.getSystemService(Context.TELEPHONY_SERVICE);
String dID = t.getDeviceId();
 
As I mentioned in the opening post, TelephonyManager.getDeviceId() and .getSimSerialNumber() won't work, as they are tied to the SIM card. I'm hoping to identify unique devices, not SIM cards.
 
As I mentioned in the opening post, TelephonyManager.getDeviceId() and .getSimSerialNumber() won't work, as they are tied to the SIM card. I'm hoping to identify unique devices, not SIM cards.

On TelephonyManager help site it says getDeviceId() returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones.
 
Back
Top Bottom