1、通过Intnet
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:添加您要拨打的电话"));
startActivity(intent);
2、在AndroidManifest.xml,添加拨打电话的权限,
<uses-permission android:name="android.permission.CALL_PHONE"/>
1、通过Intnet
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:添加您要拨打的电话"));
startActivity(intent);
2、在AndroidManifest.xml,添加拨打电话的权限,
<uses-permission android:name="android.permission.CALL_PHONE"/>