android - 如何在颤振中断开电话?
问题描述
我制作了在给定号码上自动调用的应用程序,代码如下。现在我想在 fg 10 秒后断开该呼叫。如果是的话,有可能怎么做?
android_intent.Intent()
..setAction(android_action.Action.ACTION_CALL)
..setData(Uri(scheme: "tel", path: _controllerPhone.text))
..startActivity().catchError((e) => print(e));
解决方案
由于呼叫应用程序与您的应用程序是不同的应用程序,因此您无法干预。当然,如果您直接在应用程序中进行调用,您可以很容易地做到这一点。
推荐阅读
- javascript - 在firebase中执行mailgun云功能时出现“TypeError:无法读取未定义的属性'catch'”
- square-connect - 使用 Square Point of Sale API 成功交易后如何检索最后四位卡位?
- c# - 从 1 开始,为每个单元格获取低于 mixmum 的所有可能唯一数字组合的二维数组
- java - @PropertyId 注释“不允许用于此位置”
- python - Plotly 选择事件散点图:没有更新鼠标选择的数据
- javascript - 有没有办法在jQuery中单击按钮时打印函数的结果?
- python - 我是否正确调用了 Spotify API 的音频分析方法?
- javascript - 为什么@ID变量在同一内部以不同的方式呈现
元素 - tensorflow - 如何使用 Tensorflow 显示 CNN 上使用的卷积过滤器?
- java - 如何在锁屏Android 9.1 Honor移动设备上检测电源按钮事件