Home » Interview » Technology

Write code snippet to retrieve IMEI number of Android phone?

Correct Answer: 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(ContextTELEPHONY_SERVICE); String imei = mTelephonyMgrgetDeviceId();

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion