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:
android.permission.READ_PHONE_STATE
NOTE: In case of tablets or devices which can’t act as Mobile Phone IMEI will be null.
thanks a lot.. grt help
In case of Dual sim how can we get two IMEI numbers?
Hi Harish,
Apologies for the delay in response…
As far as my knowledge of mobile devices, IMEI number is device specific.. so whether its a dual sim or single sim mobile device, IMEI will remain the same.
I saw the post now, but every sim has different consecutive imei number but the device will have single primary imei number and all the functions will carry out on that.
Hi.. Is their any way to get it in PHP?
Actually I want IMEI number or unique device number of android tablet.
Please help me out.
Hey.. sorry for late reply… You can create a webservice call which from your application can send IMEI number to your PHP code.
How i can locate an android device using IMEI number programmatically ?
Locate as in what ? Can you elaborate a bit ?
What do you do if you have three MID M729 tablets with the same IMEI number and Device ID when the Device ID is being used for differentiation in software?
I seriously don’t think that any three devices can have same IMEI numbers. IMEI is a unique identification number which is different for every device.