Android 电话拨号器

需要添加权限: android.permission.CALL_PHONE

 

 

Intent intent = new Intent();//创建一个意图


intent.setAction(Intent.ACTION_CALL);//设置意图要干什么


intent.setData(Uri.parse("tel:"+number));//设置意图的参数 Uri.parse("tel:"+number)固定格式

startActivity(intent);//开启一个意图

posted on 2015-10-20 17:50  ke1vin  阅读(95)  评论(0)    收藏  举报

导航