 <p>Once you have the duration,</p> <p>call this routine (but I am sure there are more elegant ways).</p> <pre><code>public String convertDuration(long duration) { String out = null; long hours=0; try { hours = (duration / 3600000); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); return out; } long remaining_minutes = (duration - (hours * 3600000)) / 60000; String minutes = String.valueOf(remaining_minutes); if (minutes.equals(0)) { minutes = "00"; } long remaining_seconds = (duration - (hours * 3600000) - (remaining_minutes * 60000)); String seconds = String.valueOf(remaining_seconds); if (seconds.length() &lt; 2) { seconds = "00"; } else { seconds = seconds.substring(0, 2); } if (hours &gt; 0) { out = hours + ":" + minutes + ":" + seconds; } else { out = minutes + ":" + seconds; } return out; } </code></pre>