Android系统基本功能
来源:互联网 发布:域名能干什么 编辑:程序博客网 时间:2024/05/19 08:25
打电话
Code:
Uri uri =Uri.parse("tel:15800001234");Intentintent = new Intent(Intent.ACTION_CALL, uri);startActivity(intent);
权限:
<uses-permissionandroid:name="android.permission.CALL_PHONE" />
发短信
Code:
<span style="white-space:pre"></span>Uriuri = Uri.parse("smsto:15800001234");<span style="white-space:pre"></span>Intentintent = new Intent(Intent.ACTION_SENDTO, uri);<span style="white-space:pre"></span>intent.putExtra("sms_body","android...");<span style="white-space:pre"></span>startActivity(intent);
权限:
<uses-permissionandroid:name="android.permission.SEND_SMS"/>
安装APK
<span style="white-space:pre"></span>FileapkFile = new File("mnt/sdcard/tts_3.1_market.apk");<span style="white-space:pre"></span>Intentintent = new Intent();<span style="white-space:pre"></span>intent.setAction(Intent.ACTION_VIEW);<span style="white-space:pre"></span><span style="white-space:pre"></span>intent.setDataAndType(Uri.fromFile(apkFile),"application/vnd.android.package-archive"); <span style="white-space:pre"></span>startActivity(intent);
文件浏览
FiledirFile = new File("指定的目录");
File[] files =dirFile.listFiles();
系统音乐播放器
<span style="white-space:pre"></span>Intent intent = newIntent();<span style="white-space:pre"></span>Uri uri =Uri.parse(url);<span style="white-space:pre"></span>intent.setDataAndType(uri,"audio/*"); <span style="white-space:pre"></span>intent.setAction(Intent.ACTION_VIEW);<span style="white-space:pre"></span>startActivity(intent);
0 0
- Android系统基本功能
- android基本功能
- android 实现手电筒基本功能
- 项目管理系统的基本功能
- 用VC实现GIS系统基本功能
- NO.7 信令系统基本功能结构
- 服装行业ERP系统有哪些基本功能?
- 小学生数学考试系统(实现基本功能)
- ArcGISEngine二次开发(1):系统基本功能
- android基础学习之二维码扫描基本功能
- Android中一些基本功能的实现
- Android 蓝牙开发(九)A2DP基本功能
- Android xmpp基于smack4.1.2基本功能使用
- Android蓝牙开发【九】A2DP基本功能
- rsyslog+loganalyzer系统日志分析系统(loganalyzer基本功能)
- 第二章 图形系统的基本功能和组成
- KV缓存系统的基本功能和基本架构
- 关于在Android客户端上百度地图的基本功能实现
- 下拉刷新
- Binary Tree Operations(III) - Convert a Binary Tree to Down-Right Representation
- maven命令构建自己的java项目
- 【杂题】 HDOJ 4995 Revenge of kNN
- Windows命令行命令大全
- Android系统基本功能
- Xcode中使用AFNetworking下载文件
- OGG 的最新版本Version 11.2.1.0.25 BLR 19358139– 1 September 2014
- 【asm,1】ASM的安装+ oracle安装
- SQL server 2008 安装问题
- 酷划是真的吗?
- JavaScript的null和undefined区别
- /etc/hosts文件作用
- 排序算法