title: Toggle button to start Timer1 and Timer2 but only stop Timer1
body: <p>I'm trying to convince a Toggle button to  start Timer1 and Timer2 when  "Start Timer" is clicked and only stop Timer1 leaving Timer2 continuing on "Stop Timer" 
  My main Activity looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class MainActivity extends AppCompatActivity {
  
      long init, now, paused, millis, seconds, minutes, hours;
      TextView display;
      TextView display2;
      Handler handler;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(toolbar);
          handler = new Handler();
          display = (TextView) findViewById(R.id.chronometer1);
          final ToggleButton passTog = (ToggleButton) findViewById(R.id.toggleButton1);
          final Runnable updater = new Runnable() {
              @Override
              public void run() {
                  if (passTog.isChecked()) {
                      now = System.currentTimeMillis();
                      millis = now - init;
                      seconds = ((millis / 1000) % 60);
                      minutes = (millis / 1000) / 60;
                      hours = (minutes / 3600000);
                      String hh = hours &lt; 10 ? "0" + hours : hours + "";
                      String mm = minutes &lt; 10 ? "0" + minutes : minutes + "";
                      String ss = seconds &lt; 10 ? "0" + seconds : seconds + "";
                      display.setText(hh + ":" + mm + ":" + ss);
                      handler.postDelayed(this, 10);
                      continueTimer();
                  }
              }
          };
  
  
          passTog.setOnClickListener(new View.OnClickListener() {
              public void onClick(View v) {
                  init = System.currentTimeMillis();
                  handler.post(updater);
              }
          });
      }
  
      @Override
      protected void onPause() {
          super.onPause();
          paused = System.currentTimeMillis();
  
      }
  
      @Override
      protected void onResume() {
          super.onResume();
          init += System.currentTimeMillis() - paused;
  
      }
  
  
      public void continueTimer() {
          display2 = (TextView) findViewById(R.id.chronometer2);
          now = System.currentTimeMillis();
          millis = now - init;
          seconds = ((millis / 1000) % 60);
          minutes = (millis / 1000) / 60;
          hours = (minutes / 3600000);
          String hh = hours &lt; 10 ? "0" + hours : hours + "";
          String mm = minutes &lt; 10 ? "0" + minutes : minutes + "";
          String ss = seconds &lt; 10 ? "0" + seconds : seconds + "";
          display2.setText(hh + ":" + mm + ":" + ss);
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The Goal is when toggle "START TIMER" is clicked both TIMERS (chrononeter1 and chronometer2) should start and when toggle "STOP TIMER" is clicked only chronometer1 should stop.
  Please Advise! Thanks!</p>
  
  <p>XML looks Like this:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context=".MainActivity"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:orientation="vertical"&gt;
  
      &lt;Chronometer
          android:id="@+id/chronometer1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="74dp"
          android:fontFamily="sans-serif-light"
          android:format="00:00:00"
          android:textSize="48sp" /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:gravity="center"
          android:orientation="horizontal"&gt;
  
          &lt;TextView
              android:id="@+id/contraction_text_view"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Time since last start timer:" /&gt;
  
          &lt;Chronometer
              android:id="@+id/chronometer2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:fontFamily="sans-serif-light"
              android:format="00:00:00"
              android:textSize="12sp" /&gt;
  
      &lt;/LinearLayout&gt;
  
      &lt;ToggleButton
          android:id="@+id/toggleButton1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:fontFamily="sans-serif-medium"
          android:textOff="Start Timer"
          android:textOn="Stop Timer"
  
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>