android调用系统打电话功能
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:13xxxxxx"));
startActivity(intent);
需要权限:
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
本文详细介绍了如何在Android应用中使用Intent调用系统电话功能,并强调了需要的权限。主要内容包括创建Intent实例、设置拨打电话的号码,以及确保应用拥有调用电话功能所需的权限。
android调用系统打电话功能
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:13xxxxxx"));
startActivity(intent);
需要权限:
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
508

被折叠的 条评论
为什么被折叠?