开发者

Get total Call Duration in Android

开发者 https://www.devze.com 2023-03-25 18:20 出处:网络
How can get the call duration from phone memory ? I get the calls duration from Android.provider.CallLogs.calls but if rem开发者_Python百科oved the CallLogs i am not able to fetch call log.Use PhoneSt

How can get the call duration from phone memory ? I get the calls duration from Android.provider.CallLogs.calls but if rem开发者_Python百科oved the CallLogs i am not able to fetch call log.


Use PhoneStateListener, store the start time when the phone goes off hook and the stop time when the phone goes on hook. Then calculate the duration.

0

精彩评论

暂无评论...
验证码 换一张
取 消