Back to project page audioplayer.
The source code is released under:
GNU General Public License
If you think the Android project audioplayer 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 fr.julien_dumortier.simplemusicplayer.playerview; //from w w w . ja v a2s . com public class TimeFormater { public static String getFormatedTime(long time) { int seconds = (int) (time / 1000) % 60 ; String sec = ""; if(seconds<10) sec="0"; sec+=Integer.toString(seconds); int minutes = (int) ((time / (1000*60)) % 60); return minutes+":"+sec; } }