title: Seekbar sync with timer
body: <p>I am new at programming in Android and I am trying to figure out how to link the seekbar with my timer.  In my program I allow the user to put in a time then click start timer, which then sends that value to a TextView and decrements seconds until finished.  I would like the seekbar to "follow" along.  Any help would be appreciated!  </p>
  
  <p>I've got the seekbar to sort of follow the timer but now its too choppy... is there an easy way to make a smooth progress?</p>
  
  <pre><code>public void startTimer() {
      int min = Integer.parseInt(edit_minute.getText().toString());
      int sec = Integer.parseInt(edit_second.getText().toString());
      int value = (min * 60) + sec;
      seek_bar.setMax(value *10000);
  
      new CountDownTimer(getValues(), 1000) { // adjust the milli seconds here
  
          public void onTick(long millisUntilFinished) {
  
  
              text1.setText(""
                      + String.format(
                              FORMAT,
                              TimeUnit.MILLISECONDS
                                      .toHours(millisUntilFinished),
                              TimeUnit.MILLISECONDS
                                      .toMinutes(millisUntilFinished)
                                      - TimeUnit.HOURS
                                              .toMinutes(TimeUnit.MILLISECONDS
                                                      .toHours(millisUntilFinished)),
                              TimeUnit.MILLISECONDS
                                      .toSeconds(millisUntilFinished)
                                      - TimeUnit.MINUTES
                                              .toSeconds(TimeUnit.MILLISECONDS
                                                      .toMinutes(millisUntilFinished))));
              seek_bar.setProgress((seek_bar.getProgress() + 1));
          }
  
          public void onFinish() {
              text1.setText("done!");
          }
      }.start();
  </code></pre>