获取Android设备IMEI

// java代码

private final String getIMEI() {

    TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);

    return telephonyManager.getDeviceId();

}

//  权限

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


你可能感兴趣的:(android,IMEI)