It's possible to get outgoing call duration during call?

后端 未结 1 1468
死守一世寂寞
死守一世寂寞 2020-12-06 08:00

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, bu

相关标签:
1条回答
  • 2020-12-06 08:23

    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

    0 讨论(0)
提交回复
热议问题