Monday, February 10, 2014

How to get Android device IMEI number programatically

TelephonyManager telephonyManager = (TelephonyManager) context
        .getSystemService(Context.TELEPHONY_SERVICE);
    telephonyManager.getDeviceId();

permission:
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

No comments:

Post a Comment