FAQS


How to get device IMEI and device ID

Views: 14088  |   Date: 2013-08-06 21:45:36

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 :