Wednesday, September 25, 2013

[android help] TextView only updated every x seconds


TextView only updated every x seconds


android - TextView only updated every x seconds - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















I have the following code which should change the textview every second but only does every 2 or even every 4 seconds:



final TextView tv = (TextView) findViewById(R.id.textView1);

new CountDownTimer(remain, 1000)
{
@Override
public void onFinish()
{
tv.setText("Done");
}

@Override
public void onTick(long millisUntilFinished)
{
tv.setText(timeCalculate(millisUntilFinished / 1000));
}
}.start();


What am I doing wrong?



















default






Read more

stackoverflow.comm



No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...