Back to project page CallLog.
The source code is released under:
GNU General Public License
If you think the Android project CallLog listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.kaosh.calllog; // w w w.j av a 2 s . c om public class Utils { public static String durationToString (int duration) { int s = duration; int m = s / 60; int h = m / 60; s %= 60; m %= 60; return String.format("%02d:%02d:%02d", h, m, s); } public static String costToString (float cost) { return String.format("$%.2f", cost); } }