title: How to make a countdown with seconds and milliseconds
body: <p>I'm working with android studio to an app that have a countdown that starts from 10 seconds. I wrote the code and it works fine but it shows only the seconds remaining, now i want the countdown show the milliseconds too. Can you help me please?
  Here's the code</p>
  
  <pre><code>public class MainActivity extends Activity {
  TextView txtCount;
  Button btnCount;
  int count = 0;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      txtCount = (TextView)findViewById(R.id.textView1);
      txtCount.setText(String.valueOf(count));
      btnCount = (Button)findViewById(R.id.button1);
  
      btnCount.setOnClickListener(new View.OnClickListener() {
          public void onClick(View arg0) {
              count++;
              txtCount.setText(String.valueOf(count));
          }
      });
      final TextView textic = (TextView) findViewById(R.id.textView2);
  
      CountDownTimer Count = new CountDownTimer(10000, 1000) {
          public void onTick(long millisUntilFinished) {
              int seconds = (int) ((millisUntilFinished / 1000));
  
              textic.setText(seconds + "seconds " + millisUntilFinished / 1000);
  
          }
  
          public void onFinish() {
              textic.setText("TEMPO SCADUTO");
          }
      };
  
      Count.start();
  
  
  
  }
  </code></pre>