Android拨打客服电话

来源:互联网 发布:大数据技术的应用 编辑:程序博客网 时间:2024/04/27 13:27

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" />

就这些···记录下。

0 0
原创粉丝点击