I'm using PhoneStateListener
's onCallStateChanged
method to track the states of an outgoing phone call. I need to get the state of the outgoing call when accepted. I was using CALL_STATE_OFFHOOK
to determine the answering state, but it is called even when the call receiver ignores the incoming call. Is there any accurate and possible way to get the phone call answered state?
Asked
Active
Viewed 1,792 times
2

Cœur
- 37,241
- 25
- 195
- 267

Pattabi Raman
- 5,814
- 10
- 39
- 60
-
Did you have any luck with this? I've seen the question asked a lot but no answers. – brianestey Jun 26 '12 at 03:26
-
1Wow, congrats! Any clues for the rest of us trying to do the same thing? – brianestey Jun 30 '12 at 07:10
-
@brianestey: instead of detecting the outgoing call connection state, it is easy to get the duration of the last dialed call. – Pattabi Raman Jun 30 '12 at 07:16
-
Ahh, interesting approach. I'll give that a try. Thanks for the idea. – brianestey Jun 30 '12 at 07:17
-
@brianestey:welcome, brian :) – Pattabi Raman Jun 30 '12 at 07:40
-
Wrong. Duration is set even if the phone is never picked up. You can verify that by calling a number that doesn't get answered and either hang up or let the phone call expire. The Call log will show a duration. – Johann Mar 05 '13 at 14:24