Get Last Call Duration in android

后端 未结 9 1587
北荒
北荒 2020-12-03 15:20

I am looking for an easiest way to get call duration of last dialed number. So for e.g if I have made a call to my mom once I cut the call a notification with the duration s

9条回答
  •  臣服心动
    2020-12-03 16:03

    Use the following sort order:

    CallLog.Calls.DATE " + " + CallLog.Calls.DURATION + " * 1000 desc "
    

提交回复
热议问题