 <p>Use <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)" rel="nofollow">String.format()</a> to zero pad your <code>seconds</code> to make sure it is always two digits:</p> <pre><code>timerText.setText(minutes + ":" + String.format("%02d", seconds)); </code></pre>