怎么听Android上的呼叫断开? [英] how to listen for a call disconnect on android?
本文介绍了怎么听Android上的呼叫断开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图找出如何当一个呼叫断开得到通知 - 传入和传出。其目的是发动对呼叫断的东西。
I'm trying to figure out how to be notified when a call is disconnected - both incoming and outgoing. the intent is to launch something on call disconnect.
我看着 telephnyManager页,我可以看到getCallState( ),但看着所有的常量,我没有看到像什么,我在找什么。
I looked at the telephnyManager page and i can see getCallState(), but looking at all the constants, i don't see anything like what i'm looking.
我猜我需要建立一个广播接收器 - 我只是不知道我在听什么...
I'm guessing i need to set up a broadcast receiver - i'm just not sure what i'm listening to...
感谢您的帮助!
推荐答案
请试试这个链接
它有关于android.telephony包装一些文档
it have some documentation regarding android.telephony Package
希望这会帮助你。
这篇关于怎么听Android上的呼叫断开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文