简体   繁体   中英

Outgoing Call Android

My application wants to get the event at which the call is ringing on the other side. Or when, the user on the other side has picked up the call. I tried android.intent.action.NEW_OUTGOING_CALL but it is of no use to me. I have gone through the TelephoneManager , but i am not able to get the solution.

Listen to phone state of the device, check this link:

Android: Taking complete control of phone(kiosk mode), is it possible? How?

Try to achieve with CALL_STATE_OFFHOOK of the telephoney manager :

CALL_STATE_OFFHOOK

At least one call exists that is dialing, active, or on hold, and no calls are ringing or waiting.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM