Android & Wordpress Help center

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.


Single Post Navigation

10 thoughts on “How to get IMEI number of android device?

  1. rahul baradia on said:

    thanks a lot.. grt help

  2. Harish on said:

    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.

  3. Amit Sukapure on said:

    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.

  4. How i can locate an android device using IMEI number programmatically ?

  5. 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?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: