Is it possible to programmatically dial numbers during a phone call?

大兔子大兔子 提交于 2019-12-07 12:46:33

问题


I know it is possible in Android to make a dialer,

but is it possible to make the dialer "press 1" during a phone call?(like when you call support and you have to press all sort of numbers just to talk to a person) Is there code of how to do it?


回答1:


thanks to simon who pointed me to Sending DTMF tones over the uplink in-call,

so it seems there is an app that does this https://play.google.com/store/apps/details?id=com.shdroid.bridgetrial&feature=more_from_developer#?t=W10 , but people don't know how to do it http://code.google.com/p/android/issues/detail?id=1428




回答2:


Create call intent and start it by using startActivity

Intent call = new Intent("android.intent.action.CALL", Uri.parse("tel://" + number));
startActivity(call);


来源:https://stackoverflow.com/questions/12456472/is-it-possible-to-programmatically-dial-numbers-during-a-phone-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!