android--intent的应用2
来源:互联网 发布:阿里云域名端口映射 编辑:程序博客网 时间:2024/06/03 17:46
一发送短信
Uri uri=Uri.parse("smsto:"+phone);//phone为电话号码
Intent intent =new Intent(Intent.ACTION_SENDTO,uri);
intent.putExtra("sms_body", text);//text为短信内容
startActivity(intent);
二、拨打电话
Intent intent =new Intent();
intent.setAction(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:"+number));//number为电话号码
startActivity(intent);
三、拍照
Intent intent =new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 0);
四、发送电子邮件
Uri uri=Uri.parse("mailto:someone@domain.com");//邮箱地址
Intent intent =new Intent(Intent.ACTION_SENDTO,uri);
intent.putExtra("sms_body", text);//text为短信内容
startActivity(intent);
0 0
- android--intent的应用2
- android intent的应用
- android的Intent应用大全
- android的Intent应用大全
- android 中intent的应用
- android--intent的应用1
- android Intent 的简单应用
- Android的Intent简单应用
- Android -- 显示Intent与隐式Intent的应用
- Android 系统应用调用,intent的使用
- android下的系统Intent应用
- Android的Intent+uri应用实例
- Android中Intent的一些应用
- Android 内部系统应用的调用Intent
- Android 中 Intent 的简单应用
- Android之Intent的概念与应用
- Android应用核心Intent的学习
- android Intent常见应用
- android---文件的保存与读取
- 红黑树
- 树上的查找-B-树
- POJ3067——Japan
- SQL权威指南(第4版)》PDF 下载
- android--intent的应用2
- mysql ha方案
- ANDROID开发之SQLite详解
- [基础]Mac OS下使用Docker
- Jquery Mobile 入门
- java向上转型
- 《三层理论篇》一
- [Jsp]防止页面表单重复提交的解决方法
- 《SQL权威指南(第4版)》PDF 下载