Track a phone call duration

后端 未结 2 1550
余生分开走
余生分开走 2020-12-03 04:24

Is it possible to utilize the users phone through their cell provider, and track the length of a phone call?

So the user presses a button in the app \"Call Now\". A

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 04:52

    This may be too late but just for anyone who may need it in the future. For outgoing calls, you can read the duration from the CallLog. For incoming calls, you can calculate the duration based on the start and end times of the call.

提交回复
热议问题