Focus on technology, enjoy life!—— 杨焕州 QQ:804212028
原文链接:http://blog.csdn.net/y18334702058/article/details/44624305
本文可能存在参考或借助部分外界资源,如有任何侵权行为,请与我联系!
- 主题:Android开发之电话拨号
-用的是意图Intent来进行拨号。
MainActivity.java中主要代码实现:
String phonenumber = "137123456666";
Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+phonenumber));
startActivity(intent);
需要在AndroidManifest.xml配置拨号权限,权限代码如下:
<uses-permission android:name="android.permission.CALL_PHONE"/>
Focus on technology, enjoy life!—— 杨焕州 QQ:804212028
原文链接:http://blog.csdn.net/y18334702058/article/details/44624305