Count rings of incoming call in android
<p>I am designing an application in android which will give response to incoming call.
For that I want to *<em>count ring of incoming call *</em>(i.e how many time the phone has rung yet). I tried searching it but did not find any clue. I want to respond to the incoming call after ringing the phone for some specific number of times. I tried to catch incoming call state but it did not let me to achieve that.
Please help me to come out from this.
Thanks in advance.</p>
