title: EditText value to countdowntimer
body: <p>I'm trying to assign a value which the user input into the edit text as the start value of the countdown timer converting it to milliseconds</p>
  
  <pre><code>     @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      minutes = (EditText) findViewById(R.id.minutes);
      seconds = (EditText) findViewById(R.id.seconds);
      start = (Button) findViewById(R.id.startbutton);
      count = (TextView) findViewById(R.id.counting);
  
      final String sec = String.valueOf(seconds.getText());
      int sec1 = Integer.valueOf(sec);
      long sec2 = sec1;
      //String minu = minutes.getText().toString();
  
       final CountDownTimer counting = new 
         CountDownTimer(TimeUnit.SECONDS.toMillis(sec2), 1000) {
             @Override
             public void onTick(long millisUntilFinished) {
                 Log.i("alarm rings in",                      
                     String.valueOf(millisUntilFinished/1000));
             }
  
             @Override
              public void onFinish() {
  
                  Log.i("done", "alarm is ringing");
              }
          };
  
      start.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              counting.start();
          }
  
      });
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I'm Expecting the count down to start upon clicking of the button but instead it displays the Onfinish() method output</p>