首页 > 操作系统

手机IMEI获取

2016-03-23 18:00:07

1     TelephonyManager telephonyManager= (TelephonyManager) getSystemService(TELEPHONY_SERVICE);2 //    Returns the unique device ID, for example, the IMEI for GSM and the MEID3 //    or ESN for CDMA phones. Return null if device ID is not available.4     String deviceId=telephonyManager.getDeviceId();