There are two ways to implement Android phone calls:
The first way to dial a phone is to jump to the Dial-up interface. The source code is as follows:
Intent Intent = new Intent (intent.action_dial);
Uri data = Uri.parse ("Tel:" + "135xxxxxxxx");
Intent.setdata (data);
StartActivity (Intent);
The second method, call directly to dial, but some third-party rom (for example: MIUI), not directly to the dial, but to the user to choose whether to dial, the source code is as follows:
Intent Intent = new Intent (intent.action_call);
Uri data = Uri.parse ("Tel:" + "135xxxxxxxx");
Intent.setdata (data);
StartActivity (Intent);
The first method does not require permission and can jump directly to the Dial-up interface.
The second approach requires that you add this permission to the Androidmenifest file: <uses-permission android:name="android.permission.CALL_PHONE" />
in Android6.0, you also need to dynamically request permissions in your code.
The above is a small set to introduce the Android without requesting permission to call the two ways, I hope to help you, if you have any questions welcome to my message, small series will promptly reply to everyone!