获取手机信息

TelephonyManager tm = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
String imei = tm.getDeviceId();       //取出IMEI
String tel = tm.getLine1Number();     //取出MSISDN,很可能为空
String imei =tm.getSimSerialNumber();  //取出ICCID
String imsi =tm.getSubscriberId();     //取出IMSI

你可能感兴趣的:(String,service,手机)