解决方案 »

  1.   

    一般是15位以下摘自http://www.cnblogs.com/tyjsjl/p/3585051.html
    String imei =((TelephonyManager) context.getSystemService(TELEPHONY_SERVICE)).getDeviceId();String IMEI =android.os.SystemProperties.get(android.telephony.TelephonyProperties.PROPERTY_IMEI)不过纯APP开发SystemProperties,TelephonyProperties汇报错误,因为android.os.SystemProperties在SDK的库中是没有的,需要把Android SDK 目录下data下的layoutlib.jar文件加到当前工程的附加库路径中,就可以Import。如果Android Pad没有IMEI,用此方法获取设备ANDROID_ID:String android_id = Secure.getString(this.getContentResolver(),Secure.ANDROID_ID);