I am developing an android application,in which I am getting the call- Logs.I have displayed all the details of the call Logs. The problem is I am able to get the call duration in seconds but I need it in hh-mm-ss format.
Here is the below code which I tried:
int duration = managedCursor.getColumnIndex( CallLog.Calls.DURATION);
while ( managedCursor.moveToNext() )
{
String callDuration = managedCursor.getString(duration);
}