Android studio 电话管理者(TelephonyManager)获取方法

来源:互联网 发布:锤子科技软件副总裁 编辑:程序博客网 时间:2024/04/27 22:43
 TelephonyManager tel = (TelephonyManager)context.getSystemService(context.TELEPHONY_SERVICE);
  getDeviceId():获取设备编号   getDeviceSoftwareVersion():获取系统平台的版本   getNetworkOperator():获取网络运营商代号   getNetworkOperatorName():获取网络运营商名字   getPhoneType():获取手机网络类型   getCellLocation():获取设备所在位置   getSimCountryIso():获取SIM卡的国别   getSimSerialNumber():获取SIM卡序列号   getSimState():获取SIM卡的状态   getLine1Number():获取本地号码(联通和电信卡是可以的)
0 0