title: Which implementation is best? 2 ways to fire code after a user-set amount of time
body: <p><strong>SCENARIO:</strong><br>
  <br>
  User enters 45 (minutes) into an EditText, and presses the "OK" Button..<br>
  <br>
  After 45 minutes has passed, I want to execute a block of Code..<br>
  <br>
  I have been debating between 2 different ways to do this - <strong>WHICH IS BEST &amp; WHY?</strong><br>
  <br>
  <br>
  <strong>OPTION #1</strong> - AlarmManager -> PendingIntent -> Intent -> BroadcastListener<br></p>
  
  <pre><code>    int timeValue = Integer.parseInt(editText_timer_value.getText().toString());
  
      AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
  
      Intent intent = new Intent(this, TimerReceiver.class);
  
      PendingIntent pendingIntent = PendingIntent
              .getBroadcast(this.getApplicationContext(), 234324243, intent, 0);
  
      alarmManager.set(AlarmManager.RTC_WAKEUP,
              System.currentTimeMillis() + (timeValue * 60000), pendingIntent);
  
      finish();
  
      // TimerReceiver.class fires when the time is up, and contains additional Code.
  </code></pre>
  
  <p><br>
  (OR)<br>
  <br>
  <strong>OPTION #2</strong> - Intent -> intent Extras -> Service -> CountDownTimer<br></p>
  
  <pre><code>    String timeValue = editText_timer_value.getText().toString();
  
      Intent intent = new Intent(this, TimerService.class);
  
      intent.putExtra("TIMER_VALUE", timeValue);
  
      getApplicationContext().startService(intent);
  
      finish();
  
      // TimerService.class starts immediately and runs a CountDownTimer from intent Extras
  </code></pre>
  
  <p><br>
  <br>
  <strong>SO</strong>, Which implementation is "better" or "correct", and <strong>WHY?</strong><br>
  Thanks! :)<br>
  <br>
  PS.. Any other suggestions are very much welcomed as well!<br></p>