/** * 调用拨号功能 * @param strCon */public void CallPhone(String strCon) {// TODO Auto-generated method stubIntent intent=null;Toast.makeText(getApplicationContext(), "电话:"+strCon,Toast.LENGTH_SHORT).show();intent=new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+strCon));//短信//Intent intent = new Intent(Intent.ACTION_SENDTO,Uri.parse("smsto:"+strCon));                startActivity(intent); }/** * 调用查看联系人相关信息 * @param id 为联系人表contacts 中_id */public void CallView(String id){Intent intent=null;intent = new Intent(Intent.ACTION_VIEW);               intent.setData(Uri.parse("content://contacts/people/"+id));startActivity(intent); }


更多相关文章

  1. android调用系统发送短信 和 已发送短信界面
  2. Android之---RecycleView实现简单的图片查看功能(类似相册查看器)
  3. Android(安卓)-- 零散记录[短信发送,系统拨号,单元测试]
  4. Android(安卓)Studio 发布Jar ,aar 到Maven
  5. 7.Android(安卓)自定义Loader
  6. android如何获取手机联系人的数据库
  7. android实现文件下载功能
  8. android 9.0系统重启的代码详解
  9. flutter集成推送功能-小米推送集成

随机推荐

  1. Android使用Cordova框架开发Android Hybr
  2. Android(安卓)-- 点击双下返回退出程序
  3. android资源引用
  4. 【Android UI】ListView系列一(基础篇)
  5. 谷安: Google 44 号楼“变脸”!
  6. 有关Android国际化的一点积累
  7. Android Studio中导入现有Eclipse项目(多
  8. android app签名(debug和release)
  9. Android高级应用2----ContentProvider(访
  10. AIDL --- Android中的远程接口(1)