1 private void phoneCall(String num) { 2 String phoneNum = "tel:" + num;3 Uri smsToUri = Uri.parse(phoneNum); 4 Intent intent = new Intent(Intent.ACTION_CALL, smsToUri); 5 startActivity(intent); 6 }
本文共 289 字,大约阅读时间需要 1 分钟。
1 private void phoneCall(String num) { 2 String phoneNum = "tel:" + num;3 Uri smsToUri = Uri.parse(phoneNum); 4 Intent intent = new Intent(Intent.ACTION_CALL, smsToUri); 5 startActivity(intent); 6 }
转载地址:http://rgmlx.baihongyu.com/