Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get IMEI number,serial number and software version of your phone

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 1.07k
    Comment on it

    Hello...
    Sometimes we need to know the country code, IMEI number, subscriber of a phone.

    Their is very simple solution, For this android gives facility to know it by providing TelephonyManager class.
    TelephonyManager have many methods to get information like serial number, Subscriber id, IMEI number, country code etc

    We need to add this permission in manifest file.

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

    We use it like this
    String myCountryCode,imeiNumber,serialNumbe,softwareVersionr;
    TelephonyManager myTeleManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
    myCountryCode  = myTeleManager.getSimCountryIso();
    imeiNumber =  myTeleManager.getDeviceId();
    serialNumber = myTeleManager .getSimSerialMumber()
    softwareVersionr  = myTeleManager.getDeviceSoftwareVersion();

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: