Android的双音多频发送音频压倒一切 [英] Android DTMF send tone overriding

查看:415
本文介绍了Android的双音多频发送音频压倒一切的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以编程方式发送DTMF音频的Andr​​oid系统。但仿真器显示一个对话框,上面写着你要送这些音?和它发出的音调只有当我点击确定。 但如何以编程方式克服这个对话框?

I tried to programmatically send DTMF tones in Android. But the emulator shows up a dialog box that says "Do you want to send these tones?" and it sends the tones only if I click OK. But how can I programmatically overcome this dialog box?

格拉西亚斯

推荐答案

在我的应用程序,我发送DTMF音(使用空白,)。 请参见下面的code。如果你把号码为:12345,6,7会拨打12345和发送​​6和7作为DTMF音频与差距

In my application, I am sending DTMF tones (with gap using ","). Please see the code below. If you put number as: 12345,6,7 it will dial 12345 and send 6 and 7 as dtmf tone with gap.

String url = "tel:" + number;
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(url));
startActivity(intent);

这篇关于Android的双音多频发送音频压倒一切的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆