Sonia Sharma
Write code snippet to retrieve IMEI number of Android phone.
By Sonia Sharma in .NET on May 02 2012
  • Sonia Sharma
    May, 2012 2

    A. TelephonyManager class can be used to get the IMEI number. It provides access to information about the telephony services on the device.

    Code

                TelephonyManager mTelephonyMgr = (TelephonyManager)
                getSystemService(Context.TELEPHONY_SERVICE);
                String imei = mTelephonyMgr.getDeviceId();

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS