I have a countdown timer which shows seconds from 60 to 0 (1 min countdown timer). When it reaches 1 digit numbers such as 9,8,7.. it shows 9 instead of 09. I tried using
Use: text.setText(String.format("%02d", i)); where i is the integer value
text.setText(String.format("%02d", i));
i