/** * 获取手机唯一码 */ public static String getNumber(Context context){ TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); String deviceid = tm.getDeviceId();//获取智能设备唯一编号 return deviceid; }