Android调用系统直接拨打电话功能

    xiaoxiao2025-09-11  476

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

    转载请注明原文地址: https://ju.6miu.com/read-1302547.html
    最新回复(0)