Android calls are implemented in two ways:
The first method, call the phone to jump to the dial-up interface. The source code is as follows:
New= Uri.parse ("Tel:" + "135xxxxxxxx"); intent.setdata (data); StartActivity (intent) ;
View Code
The second method, the call directly to dial, but some third-party ROM (for example: MIUI), not directly dial, but to the user to choose whether to dial, the source code is as follows:
New= Uri.parse ("Tel:" + "135xxxxxxxx"); intent.setdata (data); StartActivity (intent) ;
View Code
The first method does not require permission to apply, you can jump directly to the dial-up interface.
The second method needs to add this permission in the Androidmenifest file: <uses-permission android:name= "Android.permission.CALL_PHONE"/> In Android6.0, you also need to dynamically request permissions in your code.
Android does not need to request permission to make calls