问题
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