I need to format seconds and minutes from milliseconds. I am using countdownTimer. does anyone have sugestions? I looked at joda time. But all i need is a format so i have 1
A real lazy way of doing this as long as you know you won't have more than 60 minutes is to just make a date and use SimpleDateFormat
public void onTick(long millisUntilFinished) {
SimpleDateFormat dateFormat = new SimpleDateFormat("mm:ss");
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
Date date = new Date(millisUntilFinished);
text.setText("Time left:" + dateFormat.format(date));
}