Android App 常用的几种系统交互程序
来源:互联网 发布:预算软件破解版 编辑:程序博客网 时间:2024/04/27 18:40
我们在操作App时免不了与系统程序打交道,近期我也正好接触到这方面的需求,就顺便整理了几个常用的,希望能给广大App开发者带来帮助。
- 打电话
Intent intent =new Intent(Intent. ACTION_DIAL);intent.setData(Uri.parse("tel:13966668888" ));startActivity(intent);
- 发短信
Uri uri = Uri.parse("smsto://13966668888");Intent intent = new Intent(Intent.ACTION_SEND, uri);intent.putExtra("sms_body", "send content");startActivity(intent);
- 查看通讯录
Intent intent =new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse ("content://contacts/people/"));
- 查看图库
Intent intent = new Intent( Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);startActivity(intent);
- 拍照
Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);startActivity(i);
- 拍视频
Intent i = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);startActivity(i);
- 附 常用的几种Intent的Data属性
0 0
- Android App 常用的几种系统交互程序
- Ceph管理系统的几种系统
- 获取几种系统服务的方法
- 几种系统总线
- 几种系统调用
- unity3D中常用的几种系统自调用的重要方法
- unity3D中常用的几种系统自调用的重要方法
- C语言中的常用的几种系统时间结构体类型
- 常用两种系统体系结构的比较
- linux几种系统比较
- 列举几种系统调用
- 软件开发中常见的几种系统瓶颈
- 4种系统间交互方法比较
- 4种系统间交互方法比较
- 几种系列的字符串函数小结
- 几种系统下查看FC HBA卡信息的方法
- 【Oracle】Oracle预定义的几种系统异常及其产生原因
- 几种系统下查看FC HBA卡信息的方法
- please shutdown interbase guardian before proceeding
- 在Octave中移动数据
- 数据结构(六)线性表(一)
- hdu5916长春区题目-瞎搞构造
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 7
- Android App 常用的几种系统交互程序
- hdu1272 并查集
- android开发常用的数据库
- mysql 数据表读锁机制详解
- inline-block问题
- Android性能分析工具——TraceView
- Android控件之带清空按钮(功能)的AutoCompleteTextView自动提示
- sizeof(数组名) 与 sizeof(指针)
- top命令是Linux下