so easy。
不多说,需要的地方直接上代码就ok:
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:01056762278")); startActivity(intent);
然后注意的就是在Manifest中加拨打电话的权限啦,如下:
<uses-permission android:name="android.permission.CALL_PHONE" />
就这些···记录下。
so easy。
不多说,需要的地方直接上代码就ok:
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:01056762278")); startActivity(intent);
然后注意的就是在Manifest中加拨打电话的权限啦,如下:
<uses-permission android:name="android.permission.CALL_PHONE" />
就这些···记录下。