1 //获取手机号码  
2 TelephonyManager tm = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);  
3   String deviceid = tm.getDeviceId();//获取智能设备唯一编号  
4   String te1  = tm.getLine1Number();//获取本机号码  
5   String imei = tm.getSimSerialNumber();//获得SIM卡的序号  
6   String imsi = tm.getSubscriberId();//得到用户Id  

(转载:http://www.cnblogs.com/android100/p/android-get-num.html)

相关文章:

  • 2021-11-17
  • 2021-12-20
  • 2022-12-23
  • 2021-12-26
  • 2021-11-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2022-02-13
  • 2021-12-10
  • 2021-07-25
  • 2021-07-30
  • 2022-01-07
相关资源
相似解决方案