John Hard John Hard - 2 months ago 11
Android Question

Hang up call after it rings certain amount of times

so i guess title is pretty self explanatory, i have an app where i need to make a phone call and after it rings certain amount of times (let's say 2-3), i need to hang up to leave a missed call.



With some help from already created topics, i can make a phone call and hang up, but only after certain amount of seconds, not ring tones. Problem with seconds timer is, you cannot be certain if ringing already started.



Is there even a way in API to let me know when the phone rings?

Answer Source

This SO article deals with the exact same issue. As of now there is no public API that can detect the ringing on the other side of the call.