java - how to programmatically enter the number into phone application screen in android during conversation -
i want programmatically come in number phone application of android phone during conversation android program. (like actions - 1.open dial keypad , 2.typing number).
for illustration - when phone call phone number , phone number has extension phone number calling destination. eg - (ph no - +6581329445 , ext no - 303) so, firstly need phone call phone number(eg - +6581329445 ) , need press want extension no (eg - 303) after picked phone other side(callee).
i step programmatically. now, can phone call phone number(eg - +6581329445) programme , callee picked phon, after need set number of destination extension number(eg - 303) programme calling target destination extension.(likely dial destination extension number(eg - 303) in keypad of phone application answering screen during callee(eg - +6581329445) answering phone).
use cases explanation pictures.
call hotel phone no (eg - +6581329445)
enter room extension no (eg - 303)
i step 2 program. possible? if possible, please give me advice , how code step in android programming. many thanks.
as know can inquire android dial number you:
uri number = uri.parse("tel:" + numberstring); intent dial = new intent(intent.action_call, number); startactivity(dial);
but on stock android, cannot interact dialer application after have dialled number.
however, can tell dialer set pause between numbers:
either 2-second pause, or indefinite wait.to come in 2-second pause between numbers, utilize "," in dial string:
"6581329445,303" (thanks @323go)to wait indefinitely, utilize ";" in dial string:
"6581329445;123"this can more useful in situations - depends on how long automated answering service take allow come in extension.
the indefinite pause handled dialer popping dialog in dialler app, allowing user send numbers.
java android android-intent android-activity
No comments:
Post a Comment