android 拔打电话功能

1             private void phoneCall(String num) { 
2                 String phoneNum = "tel:" + num;
3                 Uri smsToUri = Uri.parse(phoneNum);  
4                 Intent intent = new Intent(Intent.ACTION_CALL, smsToUri);  
5                 startActivity(intent);  
6             } 

posted @ 2015-03-23 15:31  jenson138  阅读(247)  评论(0编辑  收藏  举报