android 拨打电话号码
2015-10-22 16:51
537 查看
首先,android拨打电话号码,需要加权限<uses-permission android:name="android.permission.CALL_PHONE"/>
Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+phoneEditText.getText().toString()));
startActivity(intent);
android调用每一个功能,其实都内置好了各个Activity,只要传入相应的意图Intent,传入参数,就可以调用了。
Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+phoneEditText.getText().toString()));
startActivity(intent);
android调用每一个功能,其实都内置好了各个Activity,只要传入相应的意图Intent,传入参数,就可以调用了。
相关文章推荐
- Android的多分辨率适配
- Android Studio 快捷键大全
- Android字符串资源及其格式化
- Android 中input event的分析
- Android类-process
- Android 打造风格统一的导航之actionBar
- android:设置密码隐藏与显示
- android初体验——HelloWord
- android 串口调试
- android Intent打开各种类型文件((PDF、word、excel、ppt、chm)
- android 串口调试
- Android 自定义控件
- android初体验——HelloWord
- Android SDK manager国内无法更新的解决方案
- 如何提高android串口kernel log等级
- 如何提高android串口kernel log等级
- Android : 类似UC的效果:向上滑动地址栏隐藏
- 在Android上使用OpenCL调用GPU加速
- Android 百度地图可以定位,但无法显示地图 的解决办法
- android studio 中查看数据库