Android Open Source - WorkOut Static Utils






From Project

Back to project page WorkOut.

License

The source code is released under:

Apache License

If you think the Android project WorkOut listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.damcode.workout;
/*from  www.  jav a 2s . c  o m*/
/**
 * Created by dm on 2/10/2014.
 */
public class StaticUtils {

    public static String stringifyWorkoutTime(int time){
        int hours = (time / 60) / 60;
        int mins =  (time / 60) % 60;
        int secs =  (time % 60);

        if(hours == 0 && mins == 0 && secs == 0){
            return new String("--:--:--");
        }
        return new String(hours + ":" + String.format("%02d", mins) + ":" + String.format("%02d", secs));
    }


}




Java Source Code List

org.damcode.workout.ApplicationTest.java
org.damcode.workout.ListViewItemLongClickHandler.java
org.damcode.workout.MainActivity.java
org.damcode.workout.StaticUtils.java
org.damcode.workout.WorkoutCountdownService.java
org.damcode.workout.WorkoutDBAO.java
org.damcode.workout.WorkoutDataHelper.java
org.damcode.workout.WorkoutSessionActivity.java