How to get IMEI number of android device?
IMEI number is another way of uniquely identifying cellular devices.
Each cellular device has a unique IMEI number which can never clash with another device’s IMEI number.
Android devices [phones only] also have IMEI number.
For more information about IMEI number visit this link
The following code helps in obtaining IMEI number of android devices :
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String device_id = tm.getDeviceId();
Permissions required in Android Manifest:
NOTE: In case of tablets or devices which can’t act as Mobile Phone IMEI will be null.