Android打电话的三种方式
来源:互联网 发布:货运单打印软件 编辑:程序博客网 时间:2024/06/02 03:51
1 直接拨打电话, 注意 : 如果应用中存在这种方式的话, 在豌豆荚上线就会有一个隐私提示的图标
String number = "123456789";Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + number));startActivity(intent);
2 跳转到拨号界面, 不传递电话号码
Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);startActivity(intent);
3 跳转到拨号界面, 传递电话号码, 需用户自己点击拨号
String number = "123456789";Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + number));startActivity(intent);
上述三种方式, 看你的需求自己选择吧
0 0
- Android打电话的三种方式
- ios--打电话 三种方式
- ios--打电话 三种方式
- ios 调用打电话 三种方式
- ios 调用打电话 三种方式
- ios 调用打电话 三种方式
- 打电话的3种方式
- ios打电话的两种方式
- 打电话的另一种方式
- 打电话 三种方式 -要求真机测试
- android——从打电话这个例子看android点击事件的3种处理方式
- Android打电话程序(根据添加按钮监听的3种不同方式分别实现)
- Android开发之路(三)---模拟打电话的实现
- android打电话的程序
- android 打电话的例子
- Android打电话的流程
- android的打电话
- IOS中打电话的两种方式代码实现
- 关于数据库的随笔
- JAVA JDBC连接 SQLServer2012
- 前端调用微信支付接口
- C++11中容器相关特性
- poj1523
- Android打电话的三种方式
- Android环境变量
- Python 转义序列
- 微信公众号首次关注自动回复图文消息
- RxAndroid的使用
- [torch]Getting the Output of a Layer
- readline使用示例
- Java集合-Collection
- 安装python