i would get outgoing call duration a call, I thought to get when the persone to the other side answer my call, but with PhoneStateListener we can get the state of a call, but PhoneStateListener changes state to CALL_STATE_OFFHOOK immediately when the outgoing call starts and not when the person to other side answers, so i can't get the effective time of call during a conversation. Any ideas to do this
Thanks in advance!
Outgoing - from the time the phone is answered and goes live, OR from the time the voicemail picks up.
I think this is possible simply by spying on the call log. You can query the call log at the end of a call and the duration field will tell you what you want to know.
Here's a nice tutorial. Just add the field CallLog.Calls.DURATION to the array.
http://www.dcpagesapps.com/developer-resources/android/25-android-tutorial-call-logs
I hope this helps.
Emmanuel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With