0

thanks again for all the help I have received here!

I have written a Listener that detects when a call has ended. Furthermore I want to detect wheter the receiver picked up or I ended up on the mailbox.

However, I just can't figure out how to it and can't find anything on the internet (probably searching for the wrong term, as is the case most of the time).

Help would be much appreciated.

Thanks again! Chr0n

4

1 回答 1

2
  • 可以检测通话何时结束:使用 PhoneStateListener。CALL_STATE_IDLE 状态意味着挂断。
  • 接听/挂断电话:不可能。

最接近的方法是查看通话记录并从通话时长中找出答案。通话时间为零表示另一端没有接电话。但这不是实时的,而是事后发生的。此外,它不会告诉您此人是否去了语音信箱;万一他挂了怎么办……

我希望这会有所帮助...

于 2010-11-16T21:57:00.823 回答