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.
精彩评论