I want to achieve an automatic answering features, such as "Please leave a message after hearing the D sound." Personal imagined solution is to play the sound output is set to MIC, so you can hear the other party, then how to achieve: When someone calls, the pre-prepared their own good audio output is set to MIC, to hear the other side?
Look forward to a warm speech! ! !<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Nobody actually reply to me, sad death of me
Reply:
d good idea ~
Reply:
Reply:
CallNotifier.java After receiving incoming messages to handleMessage () for processing; handleMessage () the incoming message to onNewRingingConnection () function for processing; in onNewRingingConnection () function first establish ringing connection, access Call.State state INCOMING, Then () function to evoke the requestWakeState by PhoneApp corresponding state (PARTIAL); then remove PHONE_AUTO_ANSWER message; then perform startIncomingCallQuery (c); startIncomingCallQuery function () function to obtain the relevant information through PhoneUtils Caller's startGetCallerInfo; This completes the The connection ringing; while it completes a change in the status of incoming and further calls onPhoneStateChanged in CallNotifier of hangdleMessage in () function handles to change the relevant state (including state change notification PhoneApp notify InCallScreen status change). After InCallScreen receive status change message in handleMessage in on the deal, that is, to call InCallScreen of onPhoneStateChanged () function for processing. Back CallNotifier.java, when handleMessage () processing onCustomRingQueryComplete (), the function calls the function Ringer.java were ringing tones notification ring (), followed by call PhoneUtils.showIncomingCallUi (); Show UI (by calling PhoneApp class displayCallScreen () function). Next, if the phone is turned on, then take the following processes:
First update the UI display (call CallCard.java correlation function), then enter InCallScreen message processing, then enter PhoneUtils of answerCall () function, this function will first through
. PhoneApp.getInstance () getRinger () stopRing ();. Stopped ringing, and then update the UI page.
Look at this, find online
Address
http://apps.hi.baidu.com/share/detail/34553918
Reply:
Set AudioManager.set ..., go check under api, you can change the output device
Reply:
Thank you for the answer to force ah
Reply:
Solved the problem yet? I now have a problem of some audio switching, and now have no idea, my QQ 19501238, are interested can explore under
No comments:
Post a Comment