1

Changing text of TextView -- old text doesn't go away (Android 4.1.2)

view story
linux-howto

http://stackoverflow.com – I'm pretty new to Android development. Trying to accomplish something fairly simple -- change some displayed text when a timer ticks. Here's the relevant code: protected void onStart() { super.onStart(); ... final TextView timerText = (TextView) findViewById(R.id.timer_text); ... //"Get ready" countdown currentTimer = new CountDownTimer(5000, 1000) { public void onTick(long millisUntilFinished) { timerText.setText("" + (int)Math.ceil(millisUntilFinished / 1000.0)); } public void onFinish() { ... } }; (HowTos)