首先,需要添加权限
<uses-permission android:name="android.permission.CALL_PHONE" />
1)直接拨打电话
Intent intentPhone = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + phoneNumber));
startActivity(intentPhone);
2)跳转到拨号界面,不拨打
Intent intent = newIntent(Intent.ACTION_DIAL,Uri.parse("tel:" + phoneNumber));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);