. Either way, you need to make a call. Add permission settings in AndroidManifest.xml
<uses-permission android:name="android.permission.CALL_PHONE"/><!-- Call permission-->
Implementation code for dialing function
1. Manual dialing is required
Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNum)); startActivity(intent);
2. Dial directly (it is recommended to give a prompt before calling)
Intent intent = new Intent(Intent. ACTION_CALL, Uri.parse("tel:" + phoneNum)); startActivity(intent);