简体   繁体   中英

Outgoing Call End Classification

我只想知道呼出电话何时结束,我们可以区分并知道这是由于正常的挂断(正常的呼叫结束),还是由于断开连接(信号丢失,网络拥塞或运营商的任何原因)引起的)

There are two main interfaces to call events depending on whether you are using the standard call app provided or are implementing your own user interface to manage calls.

If you are using the standard call service then you limited to whatever callbacks the Android telephony manager propvides:

This is a fairly limited set of events and I don't think will give you what you are looking for. It will allow you detect that the phone has gone from off hook to idle state, but not why.

If you are implementing the user interface yourself for call control, then you have access to a rusher set of events via the InCallService:

This provides more information in callbacks but it still does not give a 'disconnect reason' for calls, AFAIK.

Note also that to use the InCallService your app must be registered as the default phone app.

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