String androidId = Secure.getString(getContentResolver(), Secure.ANDROID_ID); 转载于:https://www.cnblogs.com/qcjd/archive/2012/11/01/9325044.html