问题
Well, I did a program to make a call to any number of my contact list and it works like a charm. The problem is that I would like to know if the connection has been estabilished (the other person has picked up the phone), and I have not any idea about how to do it.
Is there something like an interrupt that can alert me when the connection has been estabilished?
回答1:
listen to the broadcast ACTION_PHONE_STATE_CHANGED, for more information check this out here
来源:https://stackoverflow.com/questions/8955024/how-to-know-if-a-call-has-been-established