How to get device IMEI and device IDHow to get device IMEI and device ID

Get device IMEI and device ID in android program.

Answer 1


    // GET DEVICE ID
    final String deviceId = Secure.getString(getContentResolver(),
				Secure.ANDROID_ID);

    // GET IMEI NUMBER		
     TelephonyManager tManager = (TelephonyManager) getBaseContext()
		.getSystemService(Context.TELEPHONY_SERVICE);
     String deviceIMEI = tManager.getDeviceId();  
  

SUBMIT YOUR ANSWER

  |  
 
 
 

Preview :