To identify each devices uniquely I would like to use the IMEI (or ESN number for CDMA devices). How to access this programmatically?
The method getDeviceId() is deprecated. There a new method for this getImei(int)
getDeviceId()
getImei(int)
Check here