I’m developing an application which should:
- Start when incoming call begins.
- End as soon as the call has ended.
More specifically, I don’t want the application to begin while the phone is ringing, but when the actual conversation is begins (aka, the user has accepted the incoming call).
Does anyone know how to do this? And how to catch these events?
Broadcast Receiver will help you. Here‘s the official google developer page on it.
Here is a small tutorial on the same.