How do I know if a call has been established?

Well, I made a program to call any number on my contact list, and it works like a charm. The problem is that I would like to know if the connection was established (another person picked up the phone), and I do not know how to do this.

Is there something like an interruption that can alert me when a connection has been established?

+4
source share
1 answer

listen to the broadcast ACTION_PHONE_STATE_CHANGED, for more information check this here

+3
source

Source: https://habr.com/ru/post/1392233/


All Articles