标签为 [获取本机号码] 的文章

android打电话接口、获取本机号码

打电话: 1 Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + "13333333333")); 获取本机号码: 12345 TelephonyManager tm = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);String deviceid = tm.getDeviceId();String tel = tm.getLine1Number(); //本机号码String imei =tm.getSimSerialNumber();String imsi =tm.getSubscriberId ......