Madan Mohan
Madan Mohan

Reputation: 8810

How to get the total incoming call duration and total outgoing call duration in Android

How to get the total incoming call duration and total outgoing call duration in Android.

Anyone's help will be much appreciated.

Thanks to all, Madan.

Upvotes: 2

Views: 12897

Answers (1)

Dalmas
Dalmas

Reputation: 26547

You should use android.provider.CallLog.Calls. With this class you can get the content of the Call Log (incoming, outgoing, missed calls) which contains the duration of every call.

Here is a tutorial about it.

Upvotes: 4

Related Questions